Skip to main content
HookCallbacks.after - async_hooks - Node documentation
method HookCallbacks.after

Usage in Deno

import { type HookCallbacks } from "node:async_hooks";
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