Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
855 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
3 | var SubscribeOnObservable_1 = require("../observable/SubscribeOnObservable");
|
---|
4 | function subscribeOn(scheduler, delay) {
|
---|
5 | if (delay === void 0) { delay = 0; }
|
---|
6 | return function subscribeOnOperatorFunction(source) {
|
---|
7 | return source.lift(new SubscribeOnOperator(scheduler, delay));
|
---|
8 | };
|
---|
9 | }
|
---|
10 | exports.subscribeOn = subscribeOn;
|
---|
11 | var SubscribeOnOperator = (function () {
|
---|
12 | function SubscribeOnOperator(scheduler, delay) {
|
---|
13 | this.scheduler = scheduler;
|
---|
14 | this.delay = delay;
|
---|
15 | }
|
---|
16 | SubscribeOnOperator.prototype.call = function (subscriber, source) {
|
---|
17 | return new SubscribeOnObservable_1.SubscribeOnObservable(source, this.delay, this.scheduler).subscribe(subscriber);
|
---|
18 | };
|
---|
19 | return SubscribeOnOperator;
|
---|
20 | }());
|
---|
21 | //# sourceMappingURL=subscribeOn.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.