Skip to content
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

Question: why does stream/zip need an intermediaries stream layer? #87

Closed
dm3 opened this issue Jul 22, 2016 · 2 comments
Closed

Question: why does stream/zip need an intermediaries stream layer? #87

dm3 opened this issue Jul 22, 2016 · 2 comments

Comments

@dm3
Copy link
Contributor

dm3 commented Jul 22, 2016

I was wondering, why does the implementation of manifold.stream/zip create an intermediary stream for each input stream instead of "zipping" the input streams directly?

@ztellman
Copy link
Collaborator

Because if loop/recur and connect based consumers are both given the same
stream, the loop/recur consumer may miss messages. Consider the case where
there are no intermediate streams, and we both map and zip over a
particular stream.
On Fri, Jul 22, 2016 at 3:19 PM Vadim Platonov notifications@github.com
wrote:

I was wondering, why does the implementation of manifold.stream/zip
create an intermediary stream for each input stream
https://github.com/ztellman/manifold/blob/master/src/manifold/stream.clj#L649
instead of "zipping" the input streams directly?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#87, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAB6PzZpFEMDHNh-vA3j8bJP7wXLrlOEks5qYRetgaJpZM4JTDWN
.

@dm3
Copy link
Contributor Author

dm3 commented Jul 22, 2016

Makes sense, thanks!

@dm3 dm3 closed this as completed Jul 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants