Skip to main content
HookCallbacks.before - node__async_hooks.d.ts - Node documentation
method HookCallbacks.before

Usage in Deno

```typescript import { type HookCallbacks } from "node:node__async_hooks.d.ts"; ```
HookCallbacks.before(asyncId: number): void
When an asynchronous operation is initiated or completes a callback is called to notify the user. The before callback is called just before said callback is executed.

Parameters

asyncId: number
the unique identifier assigned to the resource about to execute the callback.

Return Type

void