Sha256: e4074abdd871ac579ae8cc6a22fcf05838f86881878ba2a032cb62e1cd9d0cbc

Contents?: true

Size: 1.22 KB

Versions: 49

Compression:

Stored size: 1.22 KB

Contents

/** PURE_IMPORTS_START .._observable_SubscribeOnObservable PURE_IMPORTS_END */
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) {
    if (delay === void 0) {
        delay = 0;
    }
    return function subscribeOnOperatorFunction(source) {
        return source.lift(new SubscribeOnOperator(scheduler, delay));
    };
}
var SubscribeOnOperator = /*@__PURE__*/ (/*@__PURE__*/ function () {
    function SubscribeOnOperator(scheduler, delay) {
        this.scheduler = scheduler;
        this.delay = delay;
    }
    SubscribeOnOperator.prototype.call = function (subscriber, source) {
        return new SubscribeOnObservable(source, this.delay, this.scheduler).subscribe(subscriber);
    };
    return SubscribeOnOperator;
}());
//# sourceMappingURL=subscribeOn.js.map

Version data entries

49 entries across 49 versions & 4 rubygems

Version Path
ilog-0.4.1 node_modules/rxjs/_esm5/operators/subscribeOn.js
ilog-0.4.0 node_modules/rxjs/_esm5/operators/subscribeOn.js
ilog-0.3.3 node_modules/rxjs/_esm5/operators/subscribeOn.js
govuk_publishing_components-18.0.0 node_modules/rxjs/_esm5/operators/subscribeOn.js
govuk_publishing_components-17.21.0 node_modules/rxjs/_esm5/operators/subscribeOn.js
govuk_publishing_components-17.20.0 node_modules/rxjs/_esm5/operators/subscribeOn.js
govuk_publishing_components-17.19.1 node_modules/rxjs/_esm5/operators/subscribeOn.js
govuk_publishing_components-17.19.0 node_modules/rxjs/_esm5/operators/subscribeOn.js
govuk_publishing_components-17.18.0 node_modules/rxjs/_esm5/operators/subscribeOn.js
govuk_publishing_components-17.17.0 node_modules/rxjs/_esm5/operators/subscribeOn.js
govuk_publishing_components-17.16.0 node_modules/rxjs/_esm5/operators/subscribeOn.js
govuk_publishing_components-17.15.0 node_modules/rxjs/_esm5/operators/subscribeOn.js
govuk_publishing_components-17.14.0 node_modules/rxjs/_esm5/operators/subscribeOn.js
govuk_publishing_components-17.13.0 node_modules/rxjs/_esm5/operators/subscribeOn.js
govuk_publishing_components-17.12.2 node_modules/rxjs/_esm5/operators/subscribeOn.js
govuk_publishing_components-17.12.1 node_modules/rxjs/_esm5/operators/subscribeOn.js
govuk_publishing_components-17.12.0 node_modules/rxjs/_esm5/operators/subscribeOn.js
govuk_publishing_components-17.11.0 node_modules/rxjs/_esm5/operators/subscribeOn.js
govuk_publishing_components-17.10.0 node_modules/rxjs/_esm5/operators/subscribeOn.js
govuk_publishing_components-17.9.0 node_modules/rxjs/_esm5/operators/subscribeOn.js