-
-
Save Altai-man/78ead16e2d8ebcdda80d64c30a14fa1b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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