portals.util

package portals.util

Members list

Type members

Classlikes

object Common

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Common.type
trait Future[T]

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 Object
trait Matchable
class Any
object JavaSerializer extends Serializer

Attributes

Supertypes
trait Serializer
class Object
trait Matchable
class Any
Self type
trait Key

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Key

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Key.type
object Logger

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Logger.type
trait Serializer

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object JavaSerializer.type

Types

type Logger = Logger