"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/core.c/IO/Notification.pm6" between
rakudo-2020.08.2.tar.gz and rakudo-2020.09.tar.gz

About: Rakudo is a compiler for the Perl 6 programming language.

Notification.pm6  (rakudo-2020.08.2):Notification.pm6  (rakudo-2020.09)
skipping to change at line 16 skipping to change at line 16
my class IO::Notification { my class IO::Notification {
my class FileWatchCancellation is repr('AsyncTask') { } my class FileWatchCancellation is repr('AsyncTask') { }
class Change { class Change {
has $.path; has $.path;
has $.event; has $.event;
multi method gist(Change:D:) { multi method gist(Change:D:) {
"$.path: $.event"; "$.path: $.event";
} }
method IO { $!path.IO } method IO { $!path.IO }
multi method WHICH(Change:D: --> ValueObjAt:D) {
nqp::box_s(
nqp::join('|',nqp::list_s(self.^name,$!event.Str,$!path)),
ValueObjAt
)
}
} }
method watch-path(Str() $path, :$scheduler = $*SCHEDULER) { method watch-path(Str() $path, :$scheduler = $*SCHEDULER) {
my $is-dir = $path.IO.d; my $is-dir = $path.IO.d;
my $s = Supplier.new; my $s = Supplier.new;
nqp::watchfile( nqp::watchfile(
$scheduler.queue(:hint-affinity), $scheduler.queue(:hint-affinity),
-> \path, \rename, \err { -> \path, \rename, \err {
if err { if err {
$s.quit(err); $s.quit(err);
 End of changes. 1 change blocks. 
0 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)