2020欧洲杯时间表

Questions tagged [future]

2020欧洲杯时间表 A placeholder for the result of a calculation before the calculation has completed. Used in concurrent programming. Questions about future events are off-topic on Stack Overflow.

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

Flushbar duration to match FutureBuilder ConnectionState.waiting

I have trouble to make the flushbar to display in a futurebuilder called after push and be dismissed once the future builder has received the data: Flushbar: double opacity = 0.5; Flushbar _flushbar ...
0
votes
1answer
16 views

How to globally catch unhandled Future errors?

Best practice is of course to always attach an error handler to a Future using catchError() (or using await and try/catch). But suppose I forgot, or suppose that this error is serious enough that we ...
0
votes
2answers
34 views

c++ std::future is not getting called [duplicate]

I am working with std::async and std::future in c++, but am having a bit of trouble. When I run this code, i expect to see (in the stdout) "hello world" but, instead I get nothing: #include <...
0
votes
0answers
16 views

Flutter Firestore Convert Stream To Future

I have a firestore stream in flutter that I would instead like to be a future so that I can do pagination of requests. Currently I periodically increase the limit variable in the code below and reload ...
0
votes
0answers
31 views

R promises/future with httr and loop

I am trying to use promises/future in a code block that is taking too long in my shiny app. The problem is that i am using the httr package inside a loop to retrieve data, and this is the only way i ...
0
votes
0answers
37 views

Reuse of future in C++

I would like to shutdown a thread with a future: do { periodic_or_on_notify(); next += delta; } while(future.wait_until(next) != std::future_status::ready); shutdown(); ...
-1
votes
1answer
42 views

Is .thenValue() blocking?

In a lot of places I find something like : std::move(A).thenValue(B) Is thenValue() blocking on the future "A". I read through Folly documentation but couldn't understand it. http://github.com/...
0
votes
1answer
50 views

value onSuccess is not a member of scala.concurrent.Future[Any]

I want to make a request from a URL and am having a problem: val f: Future[Any] = actor1 ? SyncRequest(url) f.onSuccess { case feed: xml.Elem => val feedInfo = FeedInfo( ...
2
votes
1answer
30 views

How to see which thread(name) was executed from a future object

The code below is what I make an instance of an submit to executor service and its result is what i store in a future object. Is there any way I can see the name of the thread that gave the result ...
0
votes
0answers
24 views

Clang does not find <future> header when using libc++ [duplicate]

I am encountering a problem that Valgrind/Helgrind does not recognize std::future as mentioned in this answer. In that answer, the solution is to use clang and libc++ instead of gcc/libstdc++. I use ...
0
votes
0answers
13 views

Accessing results of multiple futures in futurebuilder

I am extremely new to flutter and need help. I am running to futures in the Future Builder and then trying to access the documents. Unfortunately I am getting an error, code and errors below. How do ...
1
vote
2answers
30 views

Calling future in recover partial method [duplicate]

I have partial method defaultRecover helping to recover from exception: def getName(length: Int): Future[String] = { if (length > 0) Future.successful("john") else Future....
1
vote
0answers
38 views

How to run functions and daemons in Flutter and dynamically change state in StatefulWidget?

I am developing a Flutter app for accademic purposes in university. I also started approaching to Flutter's widget paradigm (Stateless vs Stateful). Anyway, considering for a while the Stateful ...
0
votes
2answers
49 views

No match for call operator when std::bind-ing a std::function with a std::future

When I try to std::bind a std::future<T> to a std::function<void(std::future<T>)> I get a compiler i.e. template error I not completely understand. It seems to me the std::bind ...
2
votes
1answer
32 views

How to manually trigger AsyncSnapshot error with FutureBuilder

I'm tring to manually trigger snapshot.hasError when a future is called and a response is gotten. For instance I have a future Future<dynamic> getJson() { Dio dio = Dio(); var ...

15 30 50 per page
1
2 3 4 5
189