项目原始demo,不改动
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Repozitorijs ir arhivēts. Tam var aplūkot failus un to var klonēt, bet nevar iesūtīt jaunas izmaiņas, kā arī atvērt jaunas problēmas/izmaiņu pieprasījumus.

12345678910111213141516
  1. import { Observable } from '../Observable';
  2. /**
  3. * Returns an Observable that mirrors the source Observable with the exception of a `complete`. If the source
  4. * Observable calls `complete`, this method will emit to the Observable returned from `notifier`. If that Observable
  5. * calls `complete` or `error`, then this method will call `complete` or `error` on the child subscription. Otherwise
  6. * this method will resubscribe to the source Observable.
  7. *
  8. * <img src="./img/repeatWhen.png" width="100%">
  9. *
  10. * @param {function(notifications: Observable): Observable} notifier - Receives an Observable of notifications with
  11. * which a user can `complete` or `error`, aborting the repetition.
  12. * @return {Observable} The source Observable modified with repeat logic.
  13. * @method repeatWhen
  14. * @owner Observable
  15. */
  16. export declare function repeatWhen<T>(this: Observable<T>, notifier: (notifications: Observable<any>) => Observable<any>): Observable<T>;