Skip to main content
PromiseHooks.onAfter - v8 - Node documentation
property PromiseHooks.onAfter

Usage in Deno

import { type PromiseHooks } from "node:v8";

The after hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop.

Type

(after: After) => Function
Back to top