captureRejections
If set to true
, the 'rejectionHandled'
event is emitted whenever a Promise is rejected, but there are no listeners to handle the rejection. This event is emitted with the following arguments:
Promise
the Promise that was rejected.
This event is useful for detecting and keeping track of promises that were rejected and not handled.