setInterval
Set Interval
Schedules a callback to be called repeatedly, each time after a delay. This method takes a JVM callback.
Return
The timer ID.
Parameters
delay
The delay in milliseconds.
callback
The callback to be called.
abstract fun setInterval(delay: Long? = DEFAULT_TIMEOUT, vararg arg: Any?, callback: Value): TimerId
Set Interval
Schedules a callback to be called repeatedly, each time after a delay. This method variant takes a polyglot Value.
Return
The timer ID.
Parameters
delay
The delay in milliseconds.
arg
Arguments to pass to the callback. Optional.
callback
The callback to be called.