CancellableActionHandle
A handle to a setTimeout
or setInterval
call which can be used to cancel it.
This is essentially a convenient replacement for:
val id = window.setTimeout(block, timeout)
window.clearTimeout(id)
Content copied to clipboard
with the advantage that it can be used for both setTimeout
and setInterval
calls, as well as mixed mode calls, like starting with an initial timeout before leading into a repeated interval.