In Supply§
See primary documentation in context for method IO::Notification.watch-path.
method watch-path($path --> Supply:D)
Creates a supply to which the OS will emit values to indicate changes on the filesystem for the given path. Also has a shortcut with the watch
method on an IO object, like this:
IO::Notification.watch-path(".").act( { say "$^file changed" } ); ".".IO.watch.act( { say "$^file changed" } ); # same