maybe-loop-timer ( timer -- )


Vocabulary
timers.private

Definition
USING: accessors combinators.short-circuit kernel ;

IN: timers.private

: maybe-loop-timer ( timer -- )
dup { [ stop-timer? ] [ interval-nanos>> not ] } 1||
[ drop ] [ loop-timer ] if ;