Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Show how to go from signal numbers to Signal objects to use with the …
…signal method
  • Loading branch information
samcv committed Nov 14, 2016
1 parent d3f3d0c commit 8ca1c63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/Type/Supply.pod6
Expand Up @@ -601,6 +601,9 @@ the supply. For example:
would catch Control-C, thank you, and then exit. The list of supported
signals can be found by checking Signal::.keys (as you would any enum).
To go from a signal number to Signal, you can do something like this:
signal(Signal(2)).tap( -> $sig { say "Received signal: $sig" } );
=head2 method IO::Notification.watch-path
Expand Down

0 comments on commit 8ca1c63

Please sign in to comment.