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
Supply.Channel gets ".quit" instead of ".fail"ed when original Supply is quit #5156
Comments
From @skids$ perl6 -e 'my $r = Supplier.new; my $s = $r.Supply; my $c = $s.Channel; start { for @$c { "got $_".say }; 42.say; }; sleep 0.5; for 1..4 { $r.emit($_); sleep 0.5 }; $r.quit(X::AdHoc.new(:message)); sleep 1;' quoting jnthn: "It's indeed a bug. It should really be calling .fail on the Channel, which should then be resulting in the exception being thrown in the for iteration." Probably this is as simple as changing line 579 of Supply.pm |
From @jnthnOn Sun Feb 28 19:50:40 2016, bri@abrij.org wrote:
There was a little more to it, since Channel.Supply was also dropping errors rather than passing them along. Fixed that also, and added test coverage to S17-supply/Channel.t. /jnthn |
The RT System itself - Status changed from 'new' to 'open' |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#127629 (status was 'resolved')
Searchable as RT127629$
The text was updated successfully, but these errors were encountered: