setInterval

A more Kotlin-friendly version of window.setInterval (with a Duration& the lambda parameter last).

Return

A CancellableActionHandle to the action being invoked. Use CancellableActionHandle.cancel to cancel the action.


A version of setInterval where the initial delay is different from the followup delay.

This can be useful if you need to fire something immediately but then have a different delay for subsequent invocations.

Return

A CancellableActionHandle to the action being invoked. Use CancellableActionHandle.cancel to cancel the action.