Debounce

data class Debounce(val duration: Duration) : EventTransformer

Wait for duration of silence before invoking the handler. Each new event resets the countdown. The handler is called only once after the quiet period expires.

Parameters

duration

The silence window (e.g. 300.milliseconds).

Constructors

Link copied to clipboard
constructor(duration: Duration)

Properties

Link copied to clipboard