Documents for @litert/idempotency / Types / IExecutionBeforeWaitCallback
Interface: IExecutionBeforeWaitCallback()<TArgs, TResult, TError>
Defined in: src/lib/Types.ts:266
The hook callback for executors, which will be executed before waiting for the operation to complete, when an idempotency record is pending.
Type Parameters
TArgs
TArgs
extends unknown
[]
TResult
TResult
TError
TError
IExecutionBeforeWaitCallback(
record
, ...args
):void
Defined in: src/lib/Types.ts:273
Parameters
record
IRecord
<TResult
, TError
>
The idempotency record, or null
if no such a record of the key exists.
args
...TArgs
The arguments to pass to the execution.
Returns
void