View Source Reactor.Executor.StepRunner (reactor v0.3.0)

Run an individual step, including compensation if possible.

Link to this section Summary

Functions

Collect the arguments and and run a step, with compensation if required.

Link to this section Functions

Link to this function

run(reactor, step, concurrency_key)

View Source
@spec run(
  Reactor.t(),
  Reactor.Step.t(),
  Reactor.Executor.ConcurrencyTracker.pool_key()
) ::
  {:ok, any(), [Reactor.Step.t()]} | :retry | {:error | :halt, any()}

Collect the arguments and and run a step, with compensation if required.

Link to this function

undo(reactor, step, value, concurrency_key)

View Source
@spec undo(
  Reactor.t(),
  Reactor.Step.t(),
  any(),
  Reactor.Executor.ConcurrencyTracker.pool_key()
) ::
  :ok | {:error, any()}

Undo a step if possible.