a zip code crypto-currency system good for red ONLY

repeatWhen.js 1023B

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