ungap

ungap/with-resolvers

Promise.witResolvers() polyfill.

JavaScript
32
0
No license

@ungap/with-resolvers is a polyfill for the Promise.withResolvers() proposal, which provides a convenient way to create a promise along with its resolve and reject functions. This is useful for scenarios where you need to create a promise and resolve or reject it later, such as in custom event emitters or when working with APIs that require a promise to be resolved or rejected externally. It's targeted at JavaScript developers who need this functionality in environments that don't yet support the native Promise.withResolvers() method.

Total donated
Undistributed
Share with your subscribers: