Skip to content

Commit b8587c8

Browse files
committed
Show how to get exit code from Proc::Async
Possibly resolves issue #1465.
1 parent 96521e6 commit b8587c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Type/Proc/Async.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ standard output and error handles, and optionally write to its standard input.
2828
say ‘stderr: ’, $_
2929
}
3030
whenever $proc.start {
31-
say ‘Proc finished;
31+
say ‘Proc finished. Exit code: ’, .exitcode;
3232
done # gracefully jump from the react block
3333
}
3434
whenever $proc.print: “I\n♥\nCamelia\n” {
@@ -66,7 +66,7 @@ line: and
6666
line: Camelia
6767
line: ♥
6868
line: I
69-
Proc finished
69+
Proc finished. Exit code: 0
7070
Program finished
7171
=end code
7272

0 commit comments

Comments
 (0)