Enables automatic capturing of promise rejection.
interface
events.default.EventEmitterAsyncResourceOptions
interface EventEmitterAsyncResourceOptions
- name?: string
The type of async event, this is required when instantiating
EventEmitterAsyncResource
directly rather than as a child class. - requireManualDestroy?: boolean
Disables automatic
emitDestroy
when the object is garbage collected. This usually does not need to be set (even ifemitDestroy
is called manually), unless the resource'sasyncId
is retrieved and the sensitive API'semitDestroy
is called with it.