portals.util
package portals.util
Members list
Type members
Classlikes
A future is a value that may be completed and available at a later time.
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()) }
- Supertypes
-
class Objecttrait Matchableclass Any
object JavaSerializer extends Serializer
Attributes
- Supertypes
- Self type
-
JavaSerializer.type
object Key
trait Serializer
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object JavaSerializer.type
Types
In this article