Skip to content

RenderTask

Unofficial

A task representing an ongoing page render operation.

Import:

import type { RenderTask } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface RenderTask

Properties

PropertyTypeDescription
onContinue((cont: () => void) => void) | nullCallback 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) | nullCallback invoked with the error when rendering fails or is cancelled, or null (the initial value).
promisePromise<void>Promise that resolves when rendering is complete.

Methods

MethodReturnsDescription
cancel(extraDelay?)voidCancels the render task.

Links to this page: