github-pages-deploy-action/node_modules/rxjs/_esm2015/internal/operators/subscribeOn.js

16 lines
579 B
JavaScript
Raw Normal View History

2020-03-07 11:45:40 +08:00
import { SubscribeOnObservable } from '../observable/SubscribeOnObservable';
export function subscribeOn(scheduler, delay = 0) {
return function subscribeOnOperatorFunction(source) {
return source.lift(new SubscribeOnOperator(scheduler, delay));
};
}
class SubscribeOnOperator {
constructor(scheduler, delay) {
this.scheduler = scheduler;
this.delay = delay;
}
call(subscriber, source) {
return new SubscribeOnObservable(source, this.delay, this.scheduler).subscribe(subscriber);
}
}
//# sourceMappingURL=subscribeOn.js.map