-
Notifications
You must be signed in to change notification settings - Fork 293
-
Notifications
You must be signed in to change notification settings - Fork 293
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
all() doesn't work on more than 4 items. #109
Comments
Hi @nielsz, currently, the max number of dissimilar value types that can be passed to Do you have a specific need to support 5 or more? |
Ah that's too bad. I couldn't find that limit in the documentation. |
Hi Niels, To make it clear, So, you can effectively leverage a combination of all(all(p1, p2, p3), all(p4, p5, p6)).then { results in
let ((a1, a2, a3), (a4, a5, a6)) = results
print(a1, a2, a3, a4, a5, a6)
} Another option would be extending Thanks. |
@nielsz closing this issue, but feel free to submit a PR if you need the additional functionality for |
It is nice to have the limit explicitly stated there. :) |
@fitsyu we're happy to accept a PR with the proposed change :) |
This is extra useful solution for issue google#109.
* add statement about the number of promises `all` can handle This is extra useful solution for issue #109. * elaborate notes for limitation of `all` and `any` * add limitation information for `any` operator similar to `all` limitation, this one also needs to be explained for users * fix misplaced words
This method works perfectly.
But If I add one more item to the
all()
method, I can't compile anymore, with an error on the first item:The text was updated successfully, but these errors were encountered: