-
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(imitate): fix cyclic execution leak, and refactor
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.
- Loading branch information
Showing
3 changed files
with
65 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.