28 Jun 2017 Well, Java provides a Callable interface to define tasks that return a result. Any call to future.get() will block until all the Futures are complete. 15 Jul 2019 Java Future tutorial shows how to do asynchronous programming in Java using Future. The value is retrieved from a future with get() , which blocks until the value is ready. The following example uses futures to compute factorials. newFixedThreadPool(2); List