Skip to content

WorkerComponentCallOptions

Options of WorkerComponent.call.

Import:

import type { WorkerComponentCallOptions } from '@mnaoumov/obsidian-lib/components/worker-component';

Signature:

export interface WorkerComponentCallOptions

Properties

PropertyTypeDescription
abortSignal?AbortSignalCancels the call. The returned promise rejects with the signal's reason at once, and the worker's handler sees its own this.abortSignal aborted; whatever it answers afterwards is dropped.
transfer?readonly Transferable[]Objects inside the arguments to transfer rather than copy. They are unusable on the main thread afterwards.

Links to this page: