Last change
on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
645 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
3 | var Observable_1 = require("../Observable");
|
---|
4 | function throwError(error, scheduler) {
|
---|
5 | if (!scheduler) {
|
---|
6 | return new Observable_1.Observable(function (subscriber) { return subscriber.error(error); });
|
---|
7 | }
|
---|
8 | else {
|
---|
9 | return new Observable_1.Observable(function (subscriber) { return scheduler.schedule(dispatch, 0, { error: error, subscriber: subscriber }); });
|
---|
10 | }
|
---|
11 | }
|
---|
12 | exports.throwError = throwError;
|
---|
13 | function dispatch(_a) {
|
---|
14 | var error = _a.error, subscriber = _a.subscriber;
|
---|
15 | subscriber.error(error);
|
---|
16 | }
|
---|
17 | //# sourceMappingURL=throwError.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.