2ality – JavaScript and more
ECMAScript proposal: <code>Promise.withResolvers()</code>
ECMAScript proposal: <code>Promise.withResolvers()</code>
2Ality
ECMAScript 2024 feature: `Promise.withResolvers()`
In this blog post we take a look at the ECMAScript 2024 feature “Promise.withResolvers” (proposed by Peter Klecha). It provides a new way of directly creating Promises, as an alternative to new Promise(...).