DebouncingTimer

class DebouncingTimer(delayMs: Int, delayFirstMs: Int = delayMs)

Helper class implementing a debouncing timer.

The block() passed to schedule will only be executed after delayMs if no other call to schedule occurred in the meanwhile.

Constructors

Link copied to clipboard
constructor(delayMs: Int, delayFirstMs: Int = delayMs)

Functions

Link copied to clipboard
operator fun invoke(block: () -> Unit)

Schedules block to be called after the timeout.