ActorSystem.spawn

Spawn a new actor with the behavior Behavior.

  1. Aid spawn()
    struct ActorSystem
    spawn
    (
    TActor
    Behavior...
    )
    ()
    if ()
  2. Aid spawn(StateT state)

Parameters

TActor

the messages that the spawned actor must implement behaviors for.

Behavior

behavior for each message.

Return Value

Type: Aid

An Aid representing the new actor.

Meta