throttle method

Observable<T> throttle (Duration duration)

Returns an Observable that emits only the first item emitted by the source Observable during sequential time windows of a specified duration.

Example

new Observable.fromIterable([1, 2, 3])
  .throttle(new Duration(seconds: 1))
  .listen(print); // prints 1

Implementation

Observable<T> throttle(Duration duration) =>
    transform(new ThrottleStreamTransformer<T>(duration));