RunWithTimeoutParams<Result>
Options for runWithTimeout.
Import:
import type { RunWithTimeoutParams } from 'obsidian-dev-utils/async';Signature:
export interface RunWithTimeoutParams<Result>Properties
| Property | Type | Description |
|---|---|---|
| context? | unknown | The context of the function. |
| 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. |
Methods
| Method | Returns | Description |
|---|---|---|
| onTimeout(this, context) | void | The function to handle the timeout. |
| operationFn(this, abortSignal) | Promisable<Result> | The operation function to execute. |
Links to this page: