You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
579 B

4 years ago
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