do

infix fun do(name: String): StatefulSagaStepWithBuilder<C, R, S>

Defines a saga step with "do 'name' with { ... }" syntax.

Example:

first `do` "take-payment" with { cart ->
updateState { it.copy(amount = payment.amount) }
createOrder(cart)
}