Behaviour for runner hooks.
Summary
Callbacks
Callback to execute the hook.
Types
@type hook_result() :: orchid_core_result() | special_result()
@type next_fn() :: (Orchid.Runner.Context.t() -> hook_result())
@type orchid_core_result() :: {:ok, Orchid.Step.output()} | {:error, term()}
@type special_result() :: {:special, any()}
Callbacks
@callback call(ctx :: Orchid.Runner.Context.t(), next_fn()) :: hook_result()
Callback to execute the hook.