2ality | JavaScript and more
Follow
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(...).