KDebouncer

constructor(scope: CoroutineScope, delay: Duration = 300.milliseconds, leading: Boolean = false)(source)

Parameters

scope

The CoroutineScope in which the debouncing coroutine runs.

delay

The quiet period duration before a value is forwarded. Default: 300ms.

leading

If true, emit the first value immediately and suppress subsequent values until the quiet period elapses. Default: false.

Type Parameters

T

The type of values being debounced.