Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Changed use of 0FILE to CWD
  • Loading branch information
Jan-Olof Hendig committed Dec 5, 2016
1 parent bbcafde commit 1cc464c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Type/IO/Notification.pod6
Expand Up @@ -20,12 +20,12 @@ C<IO::Notification.watch-path($path)> produces a L<Supply|/type/Supply> of
C<IO::Notification::Change> events for a file or directory.
Here is a small example that prints the first ten FileChanged-notifications for
the current directory:
the current working directory:
=for code :skip-test
my $finish = Promise.new;
my $count = 0;
IO::Notification.watch-path($?FILE).act( -> $change {
IO::Notification.watch-path($*CWD).act( -> $change {
$count++ if $change.event ~~ FileChanged;
say "($count) $change.path(): $change.event()";
$finish.keep if $count >= 10;
Expand Down

0 comments on commit 1cc464c

Please sign in to comment.