Files
node/lib
cjihrig 17467d15f8 util: add internal createDeferredPromise()
The pattern of resolving/rejecting a Promise from outside of its
executor happens numerous times throughout the codebase (more than
what is updated here in fact). This commit abstracts that logic
into an internal utility function.

PR-URL: https://github.com/nodejs/node/pull/37095
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2021-01-29 09:50:34 -05:00
..
2020-05-24 03:26:21 +02:00
2020-02-18 22:15:50 -08:00
2020-10-21 01:26:34 +02:00
2021-01-12 11:00:02 +01:00
2021-01-22 19:54:34 -08:00
2021-01-26 07:37:18 -08:00
2021-01-22 19:56:34 -08:00
2020-12-29 16:06:05 +01:00
2021-01-17 17:06:22 +08:00
2021-01-22 19:54:34 -08:00
2020-12-01 14:27:43 +00:00
2021-01-28 12:53:50 +01:00
…
2021-01-17 17:06:22 +08:00
2020-12-28 19:47:41 +00:00
2020-12-22 19:39:31 +00:00
2021-01-28 12:53:50 +01:00