Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

123456789101112131415161718
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var Observable_1 = require("../Observable");
  4. var subscribeToIterable_1 = require("../util/subscribeToIterable");
  5. var scheduleIterable_1 = require("../scheduled/scheduleIterable");
  6. function fromIterable(input, scheduler) {
  7. if (!input) {
  8. throw new Error('Iterable cannot be null');
  9. }
  10. if (!scheduler) {
  11. return new Observable_1.Observable(subscribeToIterable_1.subscribeToIterable(input));
  12. }
  13. else {
  14. return scheduleIterable_1.scheduleIterable(input, scheduler);
  15. }
  16. }
  17. exports.fromIterable = fromIterable;
  18. //# sourceMappingURL=fromIterable.js.map