import * as Q from "../../Queue";
import { ensuringFirst_ } from "./ensuringFirst";
import { fromChunkQueue } from "./fromChunkQueue";
/**
 * Creates a stream from a {@link XQueue} of values. The queue will be shutdown once the stream is closed.
 */

export function fromChunkQueueWithShutdown(queue) {
  return ensuringFirst_(fromChunkQueue(queue), Q.shutdown(queue));
}
//# sourceMappingURL=fromChunkQueueWithShutdown.js.map