Skip to content

TimeoutContext

Context provided to the timeout handler.

Import:

import type { TimeoutContext } from 'obsidian-dev-utils/async';

Signature:

export interface TimeoutContext

Properties

PropertyTypeDescription
durationnumberThe duration in milliseconds since the operation started.
operationNamestringThe name of the operation.

Methods

MethodReturnsDescription
onOperationCompleted(callback)voidRegisters a callback to be invoked when the operation completes.
terminateOperation()voidTerminates the operation that timed out.