Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

fromIterable.js 499B

123456789101112131415
  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