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): voidParameters:
| Parameter | Type | Description |
|---|---|---|
hook |
AsyncOperationHook | null | The hook to install, or null to remove the installed one. |
Returns: void