ignoreElements method

Observable<T> ignoreElements ()

Creates an Observable where all emitted items are ignored, only the error / completed notifications are passed

Example

new Observable.merge( new Observable.just(1), new Observable.error(new Exception()) ) .listen(print, onError: print); // prints Exception

Implementation

Observable<T> ignoreElements() =>
    transform(IgnoreElementsStreamTransformer<T>());