View Source Sage.Executor (Sage v0.6.3)
This module is responsible for Sage execution.
Link to this section Summary
Link to this section Types
@type state() :: {:state, last_effect_or_error :: {name :: term(), reason :: term()} | {:raise, exception :: Exception.t()} | {:throw, reason :: term()} | {:exit, reason :: term()}, effects_so_far :: map(), attempts :: non_neg_integer(), aborted? :: boolean(), tasks :: [{Task.t(), Keyword.t()}], on_compensation_error :: :raise | module(), tracers_and_state :: {MapSet.t(), term()}}
Link to this section Functions
@spec execute(sage :: Sage.t(), attrs :: any()) :: {:ok, result :: any(), effects :: Sage.effects()} | {:error, any()}