-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Promise.allOk and its variations #54
Comments
Yes, we should add this. Thanks for the issue! Would you like to give it a try? Otherwise, I will do it in some days. I'm on a semi-vacation ATM. Still working, but slower than normal :) |
The linked commit added I've linked them from the docs at the bottom of the error handling section. One side effect is that all the |
Also, the implementation is slightly tricky for the sake of memory safety, see this comment if interested :) Lines 279 to 289 in ae44bad
|
Hey, thank you so much for this! Out of curiosity, could it have been implemented with something like this? (in ambiguous terms)
|
Not with memory safety. In that pseudocode, the function that is directly called on each promise is I believe the function that is directly called on |
Ahh, thanks for the explanation! I understand now. |
Hi,
Thank you for this great library! I was wondering it would be possible to add
Promise.allOk
(i.e. a result version ofPromise.all
) and its variations? At the moment, I believe there is nothing provided that replicates the fail-fast behavior of JavaScript'sPromise.all
with the result type. Thanks for your consideration!The text was updated successfully, but these errors were encountered: