Skip to content

Instantly share code, notes, and snippets.

@bdw
Created November 16, 2017 16:44
Show Gist options
  • Save bdw/13cb662504b3f4e1a4f6daacc63c56c6 to your computer and use it in GitHub Desktop.
Save bdw/13cb662504b3f4e1a4f6daacc63c56c6 to your computer and use it in GitHub Desktop.
breaking-expr-in-inline-lastpayload
#!/usr/bin/env perl6
use v6;
for (0..1000) {
my $channel = Channel.new;
$channel.close;
my $result = (try $channel.receive) // buf8;
say "Result is undefined" unless $result.defined;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment