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

Usage in Deno

```typescript import { type HookCallbacks } from "node:node__async_hooks.d.ts"; ```
HookCallbacks.after(asyncId: number): void
Called immediately after the callback specified in `before` is completed. If an uncaught exception occurs during execution of the callback, then `after` will run after the `'uncaughtException'` event is emitted or a `domain`'s handler runs.

Parameters

asyncId: number
the unique identifier assigned to the resource which has executed the callback.

Return Type

void