Top "Future" questions

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

How do Clojure futures and promises differ?

Both futures and promises block until they have calculated their values, so what is the difference between them?

clojure terminology future promise
Scala Option[Future[T]] to Future[Option[T]]

How can I convert Option[Future[T]] to Future[Option[T]] in scala? I want to use it in: val …

scala future
Convert a Java Future to a Scala Future

I have a Java Future object which I would like to convert into a Scala Future. Looking at the j.…

scala future scala-java-interop
What does Future.cancel() do if not interrupting?

From java docs on Future.cancel() boolean cancel(boolean mayInterruptIfRunning) Attempts to cancel execution of this task. This attempt will …

java multithreading interrupt future
Scala async/await and parallelization

I'm learning about the uses of async/await in Scala. I have read this in https://github.com/scala/async …

scala asynchronous future async-await
How to declare Callable to execute function returning void in Java?

Suppose I would like to run static method foo asynchronously void foo() throws Exception {...} Since foo throws an exception I …

java concurrency future callable
scala.concurrent.Future wrapper for java.util.concurrent.Future

I'm using Play Framework 2.1.1 with an external java library that produces a java.util.concurrent.Future result. I'm using the …

java scala concurrency playframework-2.1 future
Python's `concurrent.futures`: Iterate on futures according to order of completion

I want something similar to executor.map, except when I iterate over the results, I want to iterate over them …

python multithreading future
Get rid of Scala Future nesting

Again and again I am struggling when a function relies on some future results. This usually boils down to a …

scala playframework-2.0 future
Python asyncio, futures and yield from

Consider the following program (running on CPython 3.4.0b1): import math import asyncio from asyncio import coroutine @coroutine def fast_sqrt(…

python future yield coroutine python-asyncio