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

export function fromQueueWithShutdown(queue) {
  return ensuringFirst_(fromQueue(queue), Q.shutdown(queue))
}
//# sourceMappingURL=fromQueueWithShutdown.js.map
