doOnDone method

Observable<T> doOnDone (void onDone())

Invokes the given callback function when the stream finishes emitting items. In other implementations, this is called doOnComplete(d).

Example

new Observable.fromIterable([1, 2, 3])
  .doOnDone(() => print("all set"))
  .listen(null); // prints "all set"

Implementation

Observable<T> doOnDone(void onDone()) =>
    transform(new DoStreamTransformer<T>(onDone: onDone));