effectKey

fun effectKey(block: suspend (C) -> String): SagaBuilder<C, R>

Attach an effect-key lambda to the current step (stateless variant).

The lambda receives the current context C and must return a non-blank string that uniquely identifies the step's side effect within a run. Blank keys are rejected at Intent-append time with IllegalStateException.

Must be called after step.

Return

This builder for method chaining.

Parameters

block

Lambda that computes the effect-key from context.

Throws