-
-
Notifications
You must be signed in to change notification settings - Fork 33.3k
Closed as not planned
Closed as not planned
Copy link
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.
Description
What is the problem this feature will solve?
I need to be able to capture and log errors that are swallowed by the likes of Promise.all
and Promise.race
. multipleResolves
currently fills that gap, but #41554 is deprecating the hook as it didn't really pan out.
What is the feature you are proposing to solve the problem?
A swallowedRejection
hook fired any time a source promise to Promise.all
/Promise.race
rejects after the returned promise settles. This would not fire on multiple resolutions, avoiding performance impact there.
What alternatives have you considered?
- Pushing for Deprecate
multipleResolves
? #41554 to be reversed. Obviously, that's not going to happen, so I didn't even bother trying. - Getting new
Promise.*
methods to replace the above ones.
benjamingr
Metadata
Metadata
Assignees
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.