Skip to content

Instantly share code, notes, and snippets.

@Altai-man
Created December 7, 2016 15:02
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 Altai-man/78ead16e2d8ebcdda80d64c30a14fa1b to your computer and use it in GitHub Desktop.
Save Altai-man/78ead16e2d8ebcdda80d64c30a14fa1b to your computer and use it in GitHub Desktop.
use v6;
my $p = Proc::Async.new('ls', '-l');
$p.stdout.tap(-> $v { say $v });
$p.stderr.tap(-> $v { say 'There was an exception!' });
await $p.start;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment