Last change
on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
499 bytes
|
Line | |
---|
1 | import { Observable } from '../Observable';
|
---|
2 | import { subscribeToIterable } from '../util/subscribeToIterable';
|
---|
3 | import { scheduleIterable } from '../scheduled/scheduleIterable';
|
---|
4 | export function fromIterable(input, scheduler) {
|
---|
5 | if (!input) {
|
---|
6 | throw new Error('Iterable cannot be null');
|
---|
7 | }
|
---|
8 | if (!scheduler) {
|
---|
9 | return new Observable(subscribeToIterable(input));
|
---|
10 | }
|
---|
11 | else {
|
---|
12 | return scheduleIterable(input, scheduler);
|
---|
13 | }
|
---|
14 | }
|
---|
15 | //# sourceMappingURL=fromIterable.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.