subscribeOn.js 829 B

123456789101112131415161718192021
  1. /** PURE_IMPORTS_START _observable_SubscribeOnObservable PURE_IMPORTS_END */
  2. import { SubscribeOnObservable } from '../observable/SubscribeOnObservable';
  3. export function subscribeOn(scheduler, delay) {
  4. if (delay === void 0) {
  5. delay = 0;
  6. }
  7. return function subscribeOnOperatorFunction(source) {
  8. return source.lift(new SubscribeOnOperator(scheduler, delay));
  9. };
  10. }
  11. var SubscribeOnOperator = /*@__PURE__*/ (function () {
  12. function SubscribeOnOperator(scheduler, delay) {
  13. this.scheduler = scheduler;
  14. this.delay = delay;
  15. }
  16. SubscribeOnOperator.prototype.call = function (subscriber, source) {
  17. return new SubscribeOnObservable(source, this.delay, this.scheduler).subscribe(subscriber);
  18. };
  19. return SubscribeOnOperator;
  20. }());
  21. //# sourceMappingURL=subscribeOn.js.map