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

Attempt to fix SupplyOperation weirdness #286

Closed
wants to merge 5 commits into from
Closed

Attempt to fix SupplyOperation weirdness #286

wants to merge 5 commits into from

Conversation

retupmoca
Copy link
Contributor

When doing, for example, $s2 = $supply.grep(* == 1); $s2.tap(...);
$s2.tap(...); $supply.more(1); # would run both taps twice

See http://irclog.perlgeek.de/perl6/2014-07-09#i_8998922 and
http://irclog.perlgeek.de/perl6/2014-07-10#i_8998982 for camelia
examples.

@retupmoca
Copy link
Contributor Author

This patch creates an issue where calling .close on one tap will end up closing the source tap for all taps.

This could possibly be solved by still having a separate source_tap per tapper, but only passing messages to that tapper instead of to all of them. However, I don't know enough to understand what the best solution is yet.

Spotted and suggested by retupmoca++ .  Basically, a new internal tap was
being created for each tap on the outside: now only the first outside tap
creates an internal tap.
@retupmoca
Copy link
Contributor Author

lizmat++

@retupmoca retupmoca closed this Jul 10, 2014
@retupmoca
Copy link
Contributor Author

Attempt 2: only pass source_tap messages to our calling tap, not to every tap.

@retupmoca retupmoca reopened this Jul 10, 2014
@retupmoca
Copy link
Contributor Author

Github is confused - will open a new PR

@retupmoca retupmoca closed this Jul 10, 2014
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

Successfully merging this pull request may close these issues.

None yet

2 participants