doOnResume method

Observable<T> doOnResume (void onResume())

Invokes the given callback function when the stream subscription resumes receiving items.

Example

final subscription = new Observable.just(1)
  .doOnResume(() => print("Let's do this!"))
  .listen(null);

subscription.pause();
subscription.resume(); "Let's do this!"

Implementation

Observable<T> doOnResume(void onResume()) =>
    transform(new DoStreamTransformer<T>(onResume: onResume));