create And Maybe Call Timer
open fun createAndMaybeCallTimer(timerId: Int, duration: Int, jsSchedulingTime: Double, repeat: Boolean)
A method to be used for asynchronously creating a timer. If the timer has already expired, (based on the provided jsSchedulingTime) then it will be immediately invoked.
Parameters
timer Id
An identifier that can be passed back to JS to invoke the callback.
duration
The time in ms before the callback should be invoked.
js Scheduling Time
The time (ms since epoch) when this timer was created in JS.
repeat
Whether the timer should be repeated (used for setInterval)