Interface: Saga
Compensations run in reverse order, each in its own non-cancellable scope,
so they still run after a cancel request. A compensation receives that
scope's ctx; use it for every call after the compensation's first await.
Methods
add()
add(
compensation):void
Parameters
compensation
(ctx) => unknown
Returns
void
compensate()
compensate():
Promise<void>
Returns
Promise<void>