Skip to content

Instantly share code, notes, and snippets.

@gfldex
Created October 2, 2016 19:46
Show Gist options
  • Save gfldex/f76cb5e18309eaf8fdf9bf8b458c812e to your computer and use it in GitHub Desktop.
Save gfldex/f76cb5e18309eaf8fdf9bf8b458c812e to your computer and use it in GitHub Desktop.
use v6;
sub f(){
my $c = Channel.new;
start {
for 1..* {
CATCH { default { note .Str } }
$c.send($_);
die 'bad';
}
}
$c.list
}
.say for f;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment