ThrottleExtensions<T> extension
Extends the Stream class with the ability to throttle events in various ways
- on
-
- Stream<
T>
- Stream<
Methods
-
throttle(
Stream< void> window(T event), {bool trailing = false, bool leading = true}) → Stream<T> -
Available on Stream<
Emits a value from the source Stream, then ignores subsequent source values while the window Stream is open, then repeats this process.T> , provided by the ThrottleExtensions extension -
throttleTime(
Duration duration, {bool trailing = false, bool leading = true}) → Stream< T> -
Available on Stream<
Emits a value from the source Stream, then ignores subsequent source values for a duration, then repeats this process.T> , provided by the ThrottleExtensions extension