frontend/.pnpm-store/v3/files/cc/0fda611e78786853e276dbb08b48fb18ab1aef1ebf66db52eb6b121b04b19da43a214d840120d01024c484088eafb3d690e9b5b80449370a706ef7aa8017aa

15 lines
499 B
Plaintext

import { Observable } from '../Observable';
import { subscribeToIterable } from '../util/subscribeToIterable';
import { scheduleIterable } from '../scheduled/scheduleIterable';
export function fromIterable(input, scheduler) {
if (!input) {
throw new Error('Iterable cannot be null');
}
if (!scheduler) {
return new Observable(subscribeToIterable(input));
}
else {
return scheduleIterable(input, scheduler);
}
}
//# sourceMappingURL=fromIterable.js.map