Currently the promise executor looks like this:
let p = new Promise((resolve, reject) => {
});
the API would have been much nicer, if it was like this
let p = new Promise(r => {
// r.resolve() / r.reject();
});
could the API be updated to support this?
via Alexander Mills
No comments:
Post a Comment