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 AsyncOperationHookProperties
| Property | Type | Description |
|---|---|---|
| onAsyncOperationStarted | (operation: Promise<void>) => void | Called with each fire-and-forget operation as it starts. |
| version | number | The version of the hook shape the installer wrote. Informational: the members only change additively. |
Links to this page: