Skip to content

Instantly share code, notes, and snippets.

Created March 29, 2016 23:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/a3399f46d43fc8fe6b58a1ad643fac06 to your computer and use it in GitHub Desktop.
Save anonymous/a3399f46d43fc8fe6b58a1ad643fac06 to your computer and use it in GitHub Desktop.
my $proc = Proc::Async.new(|@*ARGS);
my $stdout = $proc.stdout;
my $tap = $stdout.act( -> $data { print $data }, :done({ die "HERE" }));
await $proc.start;
say "Done?";
await $stdout;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment