Top "Future" questions

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

Difference Await.ready and Await.result

I know this is quite an open ended question and I apologize. I can see that Await.ready returns Awaitable.…

scala future
Scala Future with filter in for comprehension

In the example below I get the exception java.util.NoSuchElementException: Future.filter predicate is not satisfied I want to …

scala filter future for-comprehension
ProcessPoolExecutor from concurrent.futures way slower than multiprocessing.Pool

I was experimenting with the new shiny concurrent.futures module introduced in Python 3.2, and I've noticed that, almost with identical …

python concurrency multiprocessing future concurrent.futures
Dartlang wait more than one future

I want to do something after a lot of future function done,bu I do not know how to write …

dart future
Is there a way to cancel/detach a future in C++11?

I have the following code: #include <iostream> #include <future> #include <chrono> #include <thread&…

c++ c++11 future
How to cancel Future in Scala?

Java Future has cancel method, which can interrupt the thread, which runs the Future task. For example, if I wrap …

multithreading scala future
Future.get() gets interrupted always with an InterruptedException

I have a WEIRD problem with Future.get() in Java. It returns always with an InterruptedException, however the weird thing …

java null get future interrupted-exception
Error handling Scala : Future For Comprehension

I want to do error handling in my play scala web application. My application talks to the data base to …

scala error-handling playframework future
Can't import annotations from __future__

When running the statement from __future__ import annotations I get the following error: Traceback (most recent call last): File "/usr/…

python python-3.x import future
How to resolve a list of futures in Scala

I have a call that returns a Future. However, I need to make n calls so I will get back …

scala playframework-2.0 future