- timeout(delay, startTime, callback) - Static method in class io.data2viz.timer.TimerKt
-
Like timer, except the timer automatically stops on its first callback. A suitable
replacement for setTimeout that is guaranteed to not run in the background.
The callback is passed the elapsed time.
- Timer - Class in io.data2viz.timer
-
- Timer() - Constructor for class io.data2viz.timer.Timer
-
- timer(delay, startTime, callback) - Static method in class io.data2viz.timer.TimerKt
-
Schedules a new timer, invoking the specified callback repeatedly until the
timer is stopped.
- timerFlush() - Static method in class io.data2viz.timer.TimerKt
-
Immediately invoke any eligible timer callbacks. Note that zero-delay timers are normally
first executed after one frame (~17ms). This can cause a brief flicker because the browser
renders the page twice: once at the end of the first event loop, then again immediately on
the first timer callback. By flushing the timer queue at the end of the first event loop,
you can run any zero-delay timers immediately and avoid the flicker.
- TimerJVMKt - Class in io.data2viz.timer
-
- TimerKt - Class in io.data2viz.timer
-
- toString() - Method in class io.data2viz.timer.Timer
-