View Source Actors.Actor.Interface behaviour (spawn v2.0.0-RC11)

Invoker is responsible for making calls to the Host Function

Summary

Types

default_methods()

@type default_methods() :: []

payload()

@type payload() :: Spawn.ActorInvocation.t()

state()

Callbacks

invoke_host(any, state, default_methods)

@callback invoke_host(any(), state(), default_methods()) ::
  {:ok, any(), state()} | {:error, any(), state()}