Skip to main content
AsyncResource.prototype.triggerAsyncId - async_hooks - Node documentation
method AsyncResource.prototype.triggerAsyncId

Usage in Deno

import { AsyncResource } from "node:async_hooks";
AsyncResource.prototype.triggerAsyncId(): number

Return Type

number

The same triggerAsyncId that is passed to the AsyncResource constructor.

Back to top