RunWithTimeoutParams<Result>
Options for runWithTimeout.
Import:
import type { RunWithTimeoutParams } from '@mnaoumov/typescript-lib/async';Signature:
export interface RunWithTimeoutParams<Result>Properties
| Property | Type | Description |
|---|---|---|
| context? | unknown | The context of the function. |
| onTimeout? | (context: TimeoutContext) => void | The function to handle the timeout. |
| operationFunction | (abortSignal: AbortSignal) => Promisable<Result> | The operation function to execute. |
| operationName? | string | The name of the operation. |
| stackTrace? | string | undefined | The stack trace of the source function. |
| timeoutInMilliseconds | number | The maximum time to wait in milliseconds. |
Links to this page: