import * as E from "../../../../Either";
import * as Ex from "../../../../Exit";
import * as Q from "../../../../Queue";
import * as C from "../core";
import * as ZipRight from "./zipRight";
export function toQueue(queue) {
  return C.readWithCause(in_ => ZipRight.zipRight_(C.fromEffect(Q.offer_(queue, E.right(in_))), toQueue(queue)), cause => C.fromEffect(Q.offer_(queue, E.left(Ex.halt(cause)))), done => C.fromEffect(Q.offer_(queue, E.left(Ex.succeed(done)))));
}
//# sourceMappingURL=toQueue.js.map