Skip to content

Commit

Permalink
Show how to get exit code from Proc::Async
Browse files Browse the repository at this point in the history
Possibly resolves issue #1465.
  • Loading branch information
AlexDaniel authored and moritz committed Sep 2, 2017
1 parent 839ce8b commit fb916ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Type/Proc/Async.pod6
Expand Up @@ -28,7 +28,7 @@ standard output and error handles, and optionally write to its standard input.
say ‘stderr: ’, $_
}
whenever $proc.start {
say ‘Proc finished;
say ‘Proc finished. Exit code: ’, .exitcode;
done # gracefully jump from the react block
}
whenever $proc.print: “I\n♥\nCamelia\n” {
Expand Down Expand Up @@ -66,7 +66,7 @@ line: and
line: Camelia
line: ♥
line: I
Proc finished
Proc finished. Exit code: 0
Program finished
=end code
Expand Down

0 comments on commit fb916ea

Please sign in to comment.