View Source Actors.Actor.Entity (spawn v0.5.3)

Entity controls the entire lifecycle of the Host Actor.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Retrieve the Actor state direct from memory.

Synchronously invokes an Action on an Actor.

Asynchronously invokes an Action on an Actor.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

get_state(ref, opts \\ [])

View Source
@spec get_state(any(), any()) :: {:error, term()} | {:ok, term()}

Retrieve the Actor state direct from memory.

Link to this function

invoke(ref, request, opts \\ [])

View Source
@spec invoke(any(), any(), any()) :: any()

Synchronously invokes an Action on an Actor.

Link to this function

invoke_async(ref, request, opts \\ [])

View Source
@spec invoke_async(any(), any(), any()) :: :ok

Asynchronously invokes an Action on an Actor.