UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

19 lines (18 loc) 1.06 kB
import { Observable } from '../Observable'; /** * Returns an Observable that emits the same values as the source observable with the exception of a `complete`. * A `complete` will cause the emission of the Throwable that cause the complete to the Observable returned from * notificationHandler. If that Observable calls onComplete or `complete` then retry will call `complete` or `error` * on the child subscription. Otherwise, this Observable will resubscribe to the source observable, on a particular * IScheduler. * * <img src="./img/repeatWhen.png" width="100%"> * * @param {notificationHandler} receives an Observable of notifications with which a user can `complete` or `error`, * aborting the retry. * @param {scheduler} the IScheduler on which to subscribe to the source Observable. * @return {Observable} the source Observable modified with retry logic. * @method repeatWhen * @owner Observable */ export declare function repeatWhen<T>(this: Observable<T>, notifier: (notifications: Observable<any>) => Observable<any>): Observable<T>;