Skip to content

Implement Promise.withResolvers() - #179

Closed
retyui wants to merge 2 commits into
then:masterfrom
retyui:feat/retyui/withResolvers
Closed

retyui wants to merge 2 commits into
then:masterfrom
retyui:feat/retyui/withResolvers

Conversation

@retyui

@retyui retyui commented Jan 27, 2026 •

Copy link
Copy Markdown
Contributor

Promise.withResolvers() :

Promise.withResolvers() is exactly equivalent to the following code:

let resolve, reject;
const promise = new Promise((res, rej) => {
  resolve = res;
  reject = rej;
});

@rollingversions

Copy link
Copy Markdown

There is no change log for this pull request yet.

Create a changelog

error: mocha@11.7.5: The engine "node" is incompatible with this module. Expected version "^18.18.0 || ^20.9.0 || >=21.1.0". Got "14.21.3"
@retyui

retyui commented Apr 28, 2026

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant