Documentation for method

Documentation for method, assembled from the following types:

class Supply

From Supply

(Supply) method

method watch-path($path --> Supply:D)

Creates a supply to which the OS will emit values to indicate changes on the file system for the given path. Also has a shortcut with the watch method on an IO object, like this:".").act{ say "$^file changed" } );
"."                     { say "$^file changed" } );   # same