@ungap/with-resolvers

0.1.0 • Public • Published

@ungap/with-resolvers

A Promise.witResolvers() polyfill.

import '@ungap/with-resolvers';
// require('@ungap/with-resolvers');

const {resolve, reject, promise} = Promise.withResolvers();

promise.then(console.log, console.error);
resolve(Math.random());

Package Sidebar

Install

npm i @ungap/with-resolvers

Weekly Downloads

1,542

Version

0.1.0

License

ISC

Unpacked Size

1.4 kB

Total Files

4

Last publish

Collaborators

  • webreflection