Stateful Saga Step
constructor(step: TypedValue, forward: suspend StatefulStepScope<R, S>.(C) -> StepOutcome<R>, compensation: suspend CompensationScope<R, S>.() -> Unit? = null, idempotent: Boolean = false, timeout: Duration? = null, retryPolicy: RetryPolicy? = null)
Parameters
C
The type of context passed to saga steps
R
The type of result produced by saga steps
S
The type of shared saga state