import { Observable as f } from "./index-Observable.js";
import { executeSchedule as r } from "./index-executeSchedule.js";
function i(n, t) {
  if (!n)
    throw new Error("Iterable cannot be null");
  return new f(function(e) {
    r(e, t, function() {
      var a = n[Symbol.asyncIterator]();
      r(e, t, function() {
        a.next().then(function(o) {
          o.done ? e.complete() : e.next(o.value);
        });
      }, 0, !0);
    });
  });
}
export {
  i as scheduleAsyncIterable
};
