Skip to content

setAsyncOperationHook

Installs an AsyncOperationHook, replacing any installed one, or removes it.

Import:

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

Signature:

function setAsyncOperationHook(hook: AsyncOperationHook | null): void

Parameters:

Parameter Type Description
hook AsyncOperationHook | null The hook to install, or null to remove the installed one.

Returns: void