TimeoutContext
Context provided to the timeout handler.
Import:
import type { TimeoutContext } from 'obsidian-dev-utils/async';Signature:
export interface TimeoutContextProperties
| Property | Type | Description |
|---|---|---|
| duration | number | The duration in milliseconds since the operation started. |
| operationName | string | The name of the operation. |
Methods
| Method | Returns | Description |
|---|---|---|
| onOperationCompleted(callback) | void | Registers a callback to be invoked when the operation completes. |
| terminateOperation() | void | Terminates the operation that timed out. |