RunWithTimeoutNoticeParams<Result>
Options for runWithTimeout.
Import:
import type { RunWithTimeoutNoticeParams } from 'obsidian-dev-utils/obsidian/async-with-notice';Signature:
export interface RunWithTimeoutNoticeParams<Result>Properties
| Property | Type | Description |
|---|---|---|
| content? | ValueProvider<DocumentFragment | string> | Custom content to show in the notice instead of the default timed-out message. Resolved only if the operation exceeds RunWithTimeoutNoticeParams.timeoutInMilliseconds, shown as a permanent notice, and hidden when the operation completes. |
| context? | unknown | The context of the function. |
| operationName? | string | The name of the operation. |
| pluginNoticeComponent | PluginNoticeComponent | Plugin notice component to show notices. |
| shouldShowTimeoutNotice? | boolean | Whether to show a timeout notice. |
| stackTrace? | string | The stack trace of the source function. |
| timeoutInMilliseconds | number | The maximum time to wait in milliseconds. |
Methods
| Method | Returns | Description |
|---|---|---|
| operationFn(abortSignal) | Promisable<Result> | The operation function to execute. |
Links to this page: