--- EV/EV.pm 2023/10/19 18:02:42 1.167 +++ EV/EV.pm 2023/10/19 18:05:43 1.168 @@ -12,8 +12,8 @@ warn "is called after 2s"; }; - my $w = EV::timer 2, 2, sub { - warn "is called roughly every 2s (repeat = 2)"; + my $w = EV::timer 0, 3, sub { + warn "is called as soon as possible, then every 3s"; }; undef $w; # destroy event watcher again @@ -37,7 +37,7 @@ # CHILD/PID STATUS CHANGES - my $w = EV::child 666, 0, sub { + my $w = EV::child $pid, 0, sub { my ($w, $revents) = @_; my $status = $w->rstatus; };