Top "Future" questions

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

Waiting on a list of Future

I have a method which returns a List of futures List<Future<O>> futures = getFutures(); Now …

java multithreading future
What's the difference between a Future and a Promise?

What's the difference between Future and Promise? They both act like a placeholder for future results, but where is the …

java concurrency future promise
Disable future dates in jQuery UI Datepicker

Is it possible to disable future date from today? Let say today is 23/10/2010, so 24/10/2010 onwards are disabled. Sorry I am …

jquery date jquery-ui-datepicker future disable-link
What are the differences between Deferred, Promise and Future in JavaScript?

What are the differences between Deferreds, Promises and Futures? Is there a generally approved theory behind all these three?

javascript promise future deferred
Accessing value returned by scala futures

I am a newbie to scala futures and I have a doubt regarding the return value of scala futures. So, …

scala future
How to wait for several Futures?

Suppose I have several futures and need to wait until either any of them fails or all of them succeed. …

scala concurrency future
Why should I use std::async?

I'm trying to explore all the options of the new C++11 standard in depth, while using std::async and reading …

c++ c++11 asynchronous future stdasync
Promise equivalent in C#

In Scala there is a Promise class that could be used to complete a Future manually. I am looking for …

c# promise async-await task future
In what cases does Future.get() throw ExecutionException or InterruptedException

My code snippet: ExecutorService executor = Executors.newSingleThreadExecutor(); try { Task t = new Task(response,inputToPass,pTypes,unit.getInstance(),methodName,unit.getUnitKey()); …

java multithreading future executorservice interrupted-exception
Does a Future timeout kill the Thread execution

When using an ExecutorService and Future objects (when submitting Runnable tasks), if I specify a timeout value to the future's …

java concurrency executorservice future