It enables automatic capturing of promise rejection.
interface
events.default.EventEmitterAsyncResourceOptions
interface EventEmitterAsyncResourceOptions
- 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.