2026-03-04 12:59:40 +01:00
..
2026-03-04 12:59:40 +01:00
2026-03-04 12:59:40 +01:00
2026-03-04 12:59:40 +01:00
2026-03-04 12:59:40 +01:00

@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());