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