debounceLeading

fun <T> Flow<T>.debounceLeading(duration: Duration): Flow<T>(source)

Leading-edge debounce for Flow values.

Return

A new Flow that emits debounced values.

Parameters

duration

The quiet period after which the next value may be emitted.