do

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

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

Example:

first do "reserve-inventory" with { context ->
inventoryService.reserve(context.items)
}