We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbcafde commit 1cc464cCopy full SHA for 1cc464c
doc/Type/IO/Notification.pod6
@@ -20,12 +20,12 @@ C<IO::Notification.watch-path($path)> produces a L<Supply|/type/Supply> of
20
C<IO::Notification::Change> events for a file or directory.
21
22
Here is a small example that prints the first ten FileChanged-notifications for
23
-the current directory:
+the current working directory:
24
25
=for code :skip-test
26
my $finish = Promise.new;
27
my $count = 0;
28
-IO::Notification.watch-path($?FILE).act( -> $change {
+IO::Notification.watch-path($*CWD).act( -> $change {
29
$count++ if $change.event ~~ FileChanged;
30
say "($count) $change.path(): $change.event()";
31
$finish.keep if $count >= 10;
0 commit comments