Skip to content

Instantly share code, notes, and snippets.

@zoffixznet

zoffixznet/p6.p6 Secret

Created April 24, 2018 01:09
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 zoffixznet/ad3f569c6759627ea63342baab369ed5 to your computer and use it in GitHub Desktop.
Save zoffixznet/ad3f569c6759627ea63342baab369ed5 to your computer and use it in GitHub Desktop.
my $p := Proc::Async.new: $*EXECUTABLE, '-e', 「
for ^100000 { 42.note; 100.say }
」;
my atomicint $x;
$p.stdout.tap: { $x⚛++ for .lines }
$p.stderr.tap: { $x⚛++ for .lines }
await $p.start;
say $x;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment