Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

subscribeOn.js 579B

12345678910111213141516
  1. import { SubscribeOnObservable } from '../observable/SubscribeOnObservable';
  2. export function subscribeOn(scheduler, delay = 0) {
  3. return function subscribeOnOperatorFunction(source) {
  4. return source.lift(new SubscribeOnOperator(scheduler, delay));
  5. };
  6. }
  7. class SubscribeOnOperator {
  8. constructor(scheduler, delay) {
  9. this.scheduler = scheduler;
  10. this.delay = delay;
  11. }
  12. call(subscriber, source) {
  13. return new SubscribeOnObservable(source, this.delay, this.scheduler).subscribe(subscriber);
  14. }
  15. }
  16. //# sourceMappingURL=subscribeOn.js.map