-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
MimicStream should pass its listeners to imitated stream #49
Comments
You're totally correct, we should do this. Note for self: we could implement this by adding early listeners to a queue if there is no target on the MimicStream. Then, when |
Rewrite MimicStream with a different approach. Adds a hidden listener field (_hil) to Stream, which is a special listener which does not trigger start nor stop when added/removed. imitate just adds the MimicStream as a hidden listener on the target Stream, and MimicStream has its own listeners, it does not redirect them to the target. This new approach breaks the usage of imitate for Directed-Acyclic-Graphs, but we anyway intend MimicStream to be used _only_ to implement a cycle in the stream graph. So this commit removes some tests. Fixes bug #51, deprecates/invalidates issue #49.
Ok, actually I think there is no valid use for calling If we find a very valid use case for |
Can we possibly reopen this now to support dynamic graph construction? |
What's the use case? |
I believe this is covered now already? Also MimicStream has been removed |
Yeah |
Since 3.0.0,
imitate
works only when placed before listeners (it's an opposite of issue #41 ).As docs say,
imitate
changes this current MimicStream to imitate the other given stream. In my opinion, this means that no matter when do we add a listener to MimicStream, in the past or in the future, it should listen to the imitated stream (and stop listening to previously imitated stream, if present).The text was updated successfully, but these errors were encountered: