This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/rxjs/_esm2015/internal/operators/subscribeOn.js
2019-08-11 20:48:02 +02:00

16 lines
No EOL
579 B
JavaScript

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