public class Timer
| Constructor and Description |
|---|
Timer() |
| Modifier and Type | Method and Description |
|---|---|
void |
restart(double delay,
double startTime,
kotlin.jvm.functions.Function2<? super io.data2viz.timer.Timer,? super java.lang.Double,kotlin.Unit> callback)
Restart a timer with the specified callback and optional delay and time.
This is equivalent to stopping this timer and creating a new timer with
the specified arguments, although this timer retains the original invocation priority.
|
void |
stop()
Stops this timer, preventing subsequent callbacks.
This method has no effect if the timer has already stopped.
|
java.lang.String |
toString() |
public void restart(double delay,
double startTime,
kotlin.jvm.functions.Function2<? super io.data2viz.timer.Timer,? super java.lang.Double,kotlin.Unit> callback)
Restart a timer with the specified callback and optional delay and time. This is equivalent to stopping this timer and creating a new timer with the specified arguments, although this timer retains the original invocation priority.
update taskTail and taskHead (the first timer is both tail and head)
todo rename restartWith
public void stop()
Stops this timer, preventing subsequent callbacks. This method has no effect if the timer has already stopped.
public java.lang.String toString()