A wrapper that prevents compiler errors when you invoke Awaitable.await in a for
block.
A wrapper that prevents compiler errors when you invoke Awaitable.await in a for
block.
For example:
for (element <- seq) { // Compiler error: `await` must be enclosed in a `Future` block doSomething(element).await }
To suppress the error, wrap the original seq
in a AwaitableSeq.futureSeq:
for (element <- AwaitableSeq.futureSeq(seq)) { // No compiler error now doSomething(element).await }
A Future.Stateful that will be completed when another Future being completed.
A Future.Stateful that will be completed when another Future being completed.
A simple future implemented by foreachFunction.
Let the code after JumpInto.await run in executor
.
Let the code after JumpInto.await run in executor
.
Where the code after JumpInto.await runs.
A Future.Stateful that will be completed when another Future being completed.