It enables automatic capturing of promise rejection.
interface EventEmitterAsyncResourceOptions | Node.js events module | Bun BuildDocsReferenceGuidesBlogDiscord/node:events/default/EventEmitterAsyncResourceOptionsPcaptureRejectionsPnamePrequireManualDestroyPtriggerAsyncId BuildDocsReferenceGuidesBlogDiscord /node:events/default/EventEmitterAsyncResourceOptionsPcaptureRejectionsPnamePrequireManualDestroyPtriggerAsyncId events.default.EventEmitterAsyncResourceOptionsinterface EventEmitterAsyncResourceOptionscaptureRejections?: boolean name?: string requireManualDestroy?: boolean triggerAsyncId?: number
Search the reference...
/
interface
The type of async event.
Disables automatic emitDestroy when the object is garbage collected. This usually does not need to be set (even if emitDestroy is called manually), unless the resource's asyncId is retrieved and the sensitive API's emitDestroy is called with it.
The ID of the execution context that created this async event.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →interface EventEmitterAsyncResourceOptions | Node.js events module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for interface node:events.default.EventEmitterAsyncResourceOptions | Bun