Spectre.ActionExecutor (Spectre v0.3.0)

Copy Markdown View Source

Compatibility facade for the canonical Spectre.Execution workflow.

New integrations should use Spectre.execute/3; capability invocation lives in Spectre.ActionDispatcher and lifecycle mutation in Spectre.Execution.

Summary

Types

action_result()

@type action_result() :: {:ok, Spectre.Result.t()} | {:error, term()}

Functions

execute_pending(state, ctx, opts \\ [])

@spec execute_pending(Spectre.State.t(), Spectre.Context.t() | map(), keyword()) ::
  action_result()

Executes the pending action through Spectre.Execution.