UndoWrapper

inner class UndoWrapper

Wrapper for the "undo" keyword in compensation configuration.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
infix fun undo(compensation: suspend (R) -> Unit): SagaStepConfiguration<C, R>

Defines compensation logic with "and undo { ... }" syntax (suspend function).