Skip to content

Instantly share code, notes, and snippets.

@titsuki
Created March 17, 2018 11:31
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 titsuki/17e748a5f934258b900036aa7fddfe2e to your computer and use it in GitHub Desktop.
Save titsuki/17e748a5f934258b900036aa7fddfe2e to your computer and use it in GitHub Desktop.
my $proc = Proc::Async.new('perl6', '-e', 'warn "end"');
my $promise = $proc.start;
$proc.kill;
await Promise.allof($promise, Promise.in(0).then: { "hello".say; });
$promise.status.say;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment