View Source Actors (spawn v0.1.0)

Documentation for Actors.

Link to this section Summary

Link to this section Functions

Link to this function

get_state(system_name, actor_name)

View Source
@spec get_state(String.t(), String.t()) :: {:ok, term()} | {:error, term()}
Link to this function

invoke(request, opts \\ [])

View Source
Link to this function

register(registration, opts \\ [])

View Source
@spec register(Eigr.Functions.Protocol.RegistrationRequest.t(), any()) ::
  {:ok, Eigr.Functions.Protocol.RegistrationResponse.t()}
Link to this function

spawn_actor(registration, opts \\ [])

View Source
@spec spawn_actor(Eigr.Functions.Protocol.SpawnRequest.t(), any()) ::
  {:ok, Eigr.Functions.Protocol.SpawnResponse.t()}
Link to this function

try_reactivate_actor(system, actor, opts \\ [])

View Source
@spec try_reactivate_actor(
  Eigr.Functions.Protocol.Actors.ActorSystem.t(),
  Eigr.Functions.Protocol.Actors.Actor.t(),
  any()
) :: {:ok, any()} | {:error, any()}