View Source Chorex.RuntimeState (Chorex v0.8.7)
Summary
Types
An entry in the inbox looks like a CIV token × message payload
Functions
Throw away the top frame, assuming it's a recover frame. If it's not, raise an error.
Drop everything up to the first recover
frame on the stack. Return
the recovery token as well as the state with the stack popped.
Types
@type inbox_msg() :: {Chorex.Types.civ_tok(), msg :: any()}
An entry in the inbox looks like a CIV token × message payload
@type t() :: %Chorex.RuntimeState{ actor: term(), config: nil | %{required(atom()) => pid()}, impl: atom(), inbox: :queue.queue(inbox_msg()), session_token: String.t(), stack: [stack_frame()], vars: var_map(), waiting_value: any() }
Functions
Throw away the top frame, assuming it's a recover frame. If it's not, raise an error.
Drop everything up to the first recover
frame on the stack. Return
the recovery token as well as the state with the stack popped.
@spec push_recv_frame({Chorex.Types.civ_tok(), any(), String.t()}, t()) :: t()