EventEmitterAsyncResourceOptions

Properties

Link copied to clipboard
abstract var captureRejections: Boolean?

Enables automatic capturing of promise rejection.

Link copied to clipboard
abstract var name: String?

The type of async event, this is required when instantiating EventEmitterAsyncResource directly rather than as a child class.

Link copied to clipboard

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.

Link copied to clipboard
abstract var triggerAsyncId: Double?

The ID of the execution context that created this async event.