property PromiseHooks.onInit
Usage in Deno
import { type PromiseHooks } from "node:v8";
The init
hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop.
(init: Init) => Function