minor adjustment to readme
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / rxjs / _esm2015 / internal / observable / fromIterable.js
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