blib/lib/IO/AsyncX/SharedTimer.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 7 | 11 | 63.6 |
line | l | !l | condition |
---|---|---|---|
135 | 6 | 0 | $self->loop || die('Must add this timer to a loop first') |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
135 | 16 | 6 | 0 | $$self{'after'} ||= ($self->loop || die('Must add this timer to a loop first'))->delay_future('after', $self->resolution)->on_ready($self->curry::weak::expire) |
138 | 16 | 6 | 0 | $$self{'now'} //= &Time::HiRes::time() |
170 | 6 | 5 | 0 | $$self{'bucket'}{$bucket} ||= $self->loop->$m('at', $at)->on_ready(sub { delete $$self{'bucket'}{$bucket}; } ) |