setTimeout
fun WindowOrWorkerGlobalScope.setTimeout(timeout: Duration, block: () -> Unit): CancellableActionHandle(source)
A more Kotlin-friendly version of window.setTimeout
(with a Duration& the lambda parameter last).
Return
A CancellableActionHandle to the action being invoked. Use CancellableActionHandle.cancel to cancel the action.