Sha256: 1df375ce1908323d1d56dce67fb1211cc69d435377bccfa70c28db89e76bf6f5
Contents?: true
Size: 982 Bytes
Versions: 49
Compression:
Stored size: 982 Bytes
Contents
import { SubscribeOnObservable } from '../observable/SubscribeOnObservable'; /** * Asynchronously subscribes Observers to this Observable on the specified IScheduler. * * <img src="./img/subscribeOn.png" width="100%"> * * @param {Scheduler} scheduler - The IScheduler to perform subscription actions on. * @return {Observable<T>} The source Observable modified so that its subscriptions happen on the specified IScheduler. . * @method subscribeOn * @owner Observable */ 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
Version data entries
49 entries across 49 versions & 4 rubygems