Top "Future" questions

A placeholder for the result of a calculation before the calculation has completed.

Scala recover or recoverWith

We are developing some systems in our company in Scala and we have some doubts. We were discussing about how …

scala error-handling future
Pass multiple parameters to concurrent.futures.Executor.map?

The concurrent.futures.Executor.map takes a variable number of iterables from which the function given is called. How should …

python concurrency iterator future map-function
Why Future.sequence executes my futures in parallel rather than in series?

The word "sequence" means a series of actions one after the other. object Test { def main(args: Array[String]) { def …

scala future
Return CompletableFuture<Void> or CompletableFuture<?>?

I want to write an asynchronous method that returns a CompletableFuture. The only purpose of the future is to track …

java future return-type completable-future
Utility of Future.cancel(boolean) method

I was simply exploring the java.util.concurrent package. I learnt that the class 'Future' has a method boolean cancel(…

java multithreading future futuretask
Await a future, receive an either

I'd like to await a scala future that may have failed. If I use Await.result the exception will be …

scala future
Get the status of a std::future

Is it possible to check if a std::future has finished or not? As far as I can tell the …

c++ multithreading c++11 future
How to configure a fine tuned thread pool for futures?

How large is Scala's thread pool for futures? My Scala application makes many millions of future {}s and I wonder …

multithreading scala parallel-processing threadpool future
Dart, how to create a future to return in your own functions?

is it possible to create your own futures in Dart to return from your methods, or must you always return …

asynchronous dart future
Scala waiting for sequence of futures

I was hoping code like follows would wait for both futures, but it does not. object Fiddle { val f1 = Future { …

scala future