AfterEachScope

class AfterEachScope<C, R, S>(val step: TypedValue, val state: S)

Receiver scope for after.each(step) { } lambdas.

Provides access to the step name and state. Also exposes halt — but using halt because "reason" here emits a warning to stderr and has no effect, because vetoes cannot be applied after a step has already completed.

Constructors

Link copied to clipboard
constructor(step: TypedValue, state: S)

Properties

Link copied to clipboard

Sentinel that provides halt because "reason" syntax inside after.each(step) { }.

Link copied to clipboard
val state: S

Current saga state snapshot after the step ran.

Link copied to clipboard

The step identifier for the step that just completed.