method watch-path
Documentation for method watch-path assembled from the following types:
class IO::Notification
From IO::Notification
(IO::Notification) method watch-path
method watch-path(IO::Notification: Str() , : = )
Returns a Supply that emits IO::Notification::Change objects.
If $path is a file, only modifications of that file are reported. If $path is a directory, both modifications to the directory itself (for example permission changes) and to files in the directory (including new files in the directory) are reported.
:$scheduler allows you to specify which thread scheduler is responsible for the notification stream.