-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Q.allSettled #257
Comments
Trivial question w.r.t naming: if the deferred.reject() has state "rejected", then shouldn't deferred.resolve() have state "resolved" and not "fulfilled"? (assuming I am reading this all correctly). |
@ravi There’s a nuance there.
So, |
Q.allResolved
is misnamed (due to our new meaning of "resolved" over in promises-aplus/constructor-spec#18) and relies on the clunky synchronous inspection API. I proposeQ.allSettled
, which always fulfills with an array of the snapshot objects from #256.Usage example:
I am proposing something similar for when.js over in cujojs/when#119 (comment) which is getting somewhat-positive reception.
The text was updated successfully, but these errors were encountered: