-
Notifications
You must be signed in to change notification settings - Fork 3
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
concurrent versions of forEach
/some
/every
/find
?
#6
Comments
RxJS (and other observable implementations) implement
I would avoid concurrency parameters in EVERYTHING if possible. RxJS exposes a "concurrency" parameter in our |
Could It definitely gives me the icks but given the strong hesitation against adding concurrency parameters it seems like one of few choices. |
|
These aren't strictly necessary given a
bufferAhead
helper, because you can always replace.some(pred)
with.map(pred).bufferAhead(3).some(x => x)
(or similar). But that's kind of gross.I definitely don't want to add a "concurrency" parameter to the iterator-producing helpers, since it's much easier to use when concurrency of an iterator chain is determined by how many times the consumer pulls from it. (Some more discussion of that in the second half of this comment.)
But these methods are the consumer, and might themselves be async and able to run their functions concurrently. Should we have concurrent versions of the consumers?
The text was updated successfully, but these errors were encountered: