Last change
on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
663 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
3 | var Observable_1 = require("../Observable");
|
---|
4 | var subscribeToIterable_1 = require("../util/subscribeToIterable");
|
---|
5 | var scheduleIterable_1 = require("../scheduled/scheduleIterable");
|
---|
6 | function fromIterable(input, scheduler) {
|
---|
7 | if (!input) {
|
---|
8 | throw new Error('Iterable cannot be null');
|
---|
9 | }
|
---|
10 | if (!scheduler) {
|
---|
11 | return new Observable_1.Observable(subscribeToIterable_1.subscribeToIterable(input));
|
---|
12 | }
|
---|
13 | else {
|
---|
14 | return scheduleIterable_1.scheduleIterable(input, scheduler);
|
---|
15 | }
|
---|
16 | }
|
---|
17 | exports.fromIterable = fromIterable;
|
---|
18 | //# sourceMappingURL=fromIterable.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.