RenderTask
Unofficial
A task representing an ongoing page render operation.
Import:
import type { RenderTask } from '@obsidian-typings/obsidian-catalyst-latest';Signature:
export interface RenderTaskProperties
| Property | Type | Description | |
|---|---|---|---|
| onContinue | ((cont: () => void) => void) | null | Callback invoked before each rendering step, or null (the initial value) to continue at once. When set, rendering continues only once it calls the given function. | |
| onError | ((error: unknown) => void) | null | Callback invoked with the error when rendering fails or is cancelled, or null (the initial value). | |
| promise | Promise<void> | Promise that resolves when rendering is complete. |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| cancel(extraDelay?) | void | Cancels the render task. |
Links to this page: