View Source Actors.Actor.Interface behaviour (spawn v1.0.0-rc.27)

Invoker is responsible for making calls to the Host Function

Summary

Types

@type default_methods() :: []
@type payload() :: Eigr.Functions.Protocol.ActorInvocation.t()

Callbacks

Link to this callback

invoke_host(any, state, default_methods)

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