Created
November 15, 2016 20:46
-
-
Save dogbert17/67228d08b8fe9a78c5fbb460ae5b78b9 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 $prog = Proc::Async.new(:w, 'hexdump', '-C'); | |
my $promise = $prog.start; | |
await $prog.write(Buf.new(12, 42)); | |
$prog.close-stdin; | |
await $promise; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment