File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -3070,6 +3070,20 @@ Type: End-of-Life
30703070This error code was removed due to adding more confusion to
30713071the errors used for value type validation.
30723072
3073+ ### DEPXXXX: ` process.on('multipleResolves, handler) `
3074+
3075+ <!-- YAML
3076+ changes:
3077+ - version: REPLACEME
3078+ pr-url: https://github.com/nodejs/node/pull/41872
3079+ description: Documentation-only deprecation.
3080+ -->
3081+
3082+ Type: Documentation-only
3083+
3084+ This event was deprecated because it did not work with V8 promise combinators
3085+ which diminished its usefulness.
3086+
30733087[ Legacy URL API ] : url.md#legacy-url-api
30743088[ NIST SP 800-38D ] : https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
30753089[ RFC 6066 ] : https://tools.ietf.org/html/rfc6066#section-3
Original file line number Diff line number Diff line change @@ -181,8 +181,11 @@ See [Advanced serialization for `child_process`][] for more details.
181181
182182<!-- YAML
183183added: v10.12.0
184+ deprecated: REPLACEME
184185-->
185186
187+ > Stability: 0 - Deprecated
188+
186189* ` type ` {string} The resolution type. One of ` 'resolve' ` or ` 'reject' ` .
187190* ` promise ` {Promise} The promise that resolved or rejected more than once.
188191* ` value ` {any} The value with which the promise was either resolved or
@@ -200,6 +203,9 @@ This is useful for tracking potential errors in an application while using the
200203the occurrence of this event does not necessarily indicate an error. For
201204example, [ ` Promise.race() ` ] [ ] can trigger a ` 'multipleResolves' ` event.
202205
206+ Because of the unreliability of the event in cases like the
207+ [ ` Promise.race() ` ] [ ] example above it has been deprecated.
208+
203209``` mjs
204210import process from ' process' ;
205211
You can’t perform that action at this time.
0 commit comments