Skip to content

Commit

Permalink
Use numbers instead of incoherent text
Browse files Browse the repository at this point in the history
This way the example is easier to follow.
  • Loading branch information
AlexDaniel committed May 6, 2018
1 parent 22fa817 commit d93e58f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Type/Proc/Async.pod6
Expand Up @@ -16,7 +16,7 @@ standard output and error handles, and optionally write to its standard input.
=begin code
my $file = ‘foo’.IO;
spurt $file, “and\nCamelia\n♡\nme\n”;
spurt $file, “Four\nFive\nSix\n”;
my $proc = Proc::Async.new: :w, ‘tac’, ‘--’, $file, ‘-’;
# my $proc = Proc::Async.new: :w, ‘sleep’, 15; # uncomment to try timeouts
Expand All @@ -32,7 +32,7 @@ react {
say ‘Proc finished. Exit code: ’, .exitcode;
done # gracefully jump from the react block
}
whenever $proc.print: “I\n♥\nCamelia\n” {
whenever $proc.print: “One\nTwo\nThree\n” {
$proc.close-stdin
}
whenever signal(SIGTERM).merge: signal(SIGINT) {
Expand Down

0 comments on commit d93e58f

Please sign in to comment.