Interface EventEmitterAsyncResourceOptions
interface EventEmitterAsyncResourceOptions {
captureRejections?: boolean;
name?: string;
requireManualDestroy?: boolean;
triggerAsyncId?: number;
}
captureRejections?: boolean;
name?: string;
requireManualDestroy?: boolean;
triggerAsyncId?: number;
}
Hierarchy (View Summary)
- AsyncResourceOptions
- EventEmitterOptions
- EventEmitterAsyncResourceOptions
Index
Properties
OptionalcaptureRejections
captureRejections?: boolean
Optionalname
name?: string
The type of async event.
OptionalrequireManualDestroy
requireManualDestroy?: boolean
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.
OptionaltriggerAsyncId
triggerAsyncId?: number
The ID of the execution context that created this async event.
Was this helpful?
It enables automatic capturing of promise rejection.