Saga Step
data class SagaStep<R, T>(val name: String, val action: suspend () -> R, val compensation: suspend (R) -> Unit? = null)(source)
Represents a single step in a saga.
Parameters
name
Human-readable name for the step
action
The action to execute
compensation
The compensation action to execute on failure
Type Parameters
R
The result type of the step action