1 import { Observable } from '../Observable';
2 import { subscribeToIterable } from '../util/subscribeToIterable';
3 import { scheduleIterable } from '../scheduled/scheduleIterable';
4 export function fromIterable(input, scheduler) {
6 throw new Error('Iterable cannot be null');
9 return new Observable(subscribeToIterable(input));
12 return scheduleIterable(input, scheduler);
15 //# sourceMappingURL=fromIterable.js.map