View Source Actors.Actor.Interface behaviour (spawn v0.1.0)

Invoker is responsible for making calls to the Host Function

Link to this section Summary

Link to this section Types

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

Link to this section 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()}