TimeoutContext
Context provided to the timeout handler.
Import:
import type { TimeoutContext } from '@mnaoumov/typescript-lib/async';Signature:
export interface TimeoutContextProperties
| Property | Type | Description |
|---|---|---|
| duration | number | The duration in milliseconds since the operation started. |
| onOperationCompleted | (callback: () => void) => void | Registers a callback to be invoked when the operation completes. |
| operationName | string | The name of the operation. |
| terminateOperation | () => void | Terminates the operation that timed out. |
Links to this page: