Future
portals.util.Future
A future is a value that may be completed and available at a later time.
Futures are created by requesting a value from a portal. The value is completed by a corresponding reply from the portal. The await
method registers a continuation on the future that is executed when the future is completed.
Type parameters
- T
-
the type of the value
Attributes
- Example
-
val future = ask(portal, request) await(future) { future.value.get match case Rep(value) => log.info(value.toString()) }
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article