Skip to content

notifyAsyncOperationStarted

Reports a fire-and-forget operation to the installed AsyncOperationHook, if any.

Import:

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

Signature:

function notifyAsyncOperationStarted(operation: Promise<void>): void

Parameters:

Parameter Type Description
operation Promise<void> The operation that has just started.

Returns: void