DebounceExtensions<T> extension

Extends the Stream class with the ability to debounce events in various ways

on

Methods

debounce(Stream<void> window(T event)) Stream<T>

Available on Stream<T>, provided by the DebounceExtensions extension

Transforms a Stream so that will only emit items from the source sequence if a window has completed, without the source sequence emitting another item.
debounceTime(Duration duration) Stream<T>

Available on Stream<T>, provided by the DebounceExtensions extension

Transforms a Stream so that will only emit items from the source sequence whenever the time span defined by duration passes, without the source sequence emitting another item.