Skip to content

AsyncOperationHook

An observer notified whenever a fire-and-forget operation starts.

Import:

import type { AsyncOperationHook } from '@mnaoumov/typescript-lib/async-operation-hook';

Signature:

export interface AsyncOperationHook

Properties

PropertyTypeDescription
onAsyncOperationStarted(operation: Promise<void>) => voidCalled with each fire-and-forget operation as it starts.
versionnumberThe version of the hook shape the installer wrote. Informational: the members only change additively.

Links to this page: