Skip to content

WorkerCallContext

The context of one call, passed to a handler as this.

Import:

import type { WorkerCallContext } from '@mnaoumov/obsidian-lib/worker-protocol';

Signature:

export interface WorkerCallContext

Properties

PropertyTypeDescription
abortSignalAbortSignalAborted when the caller cancels the call. A long handler checks it between steps; nothing interrupts a synchronous loop, so a job that cannot check it is stopped only by terminating the worker.

Links to this page: