// ets_tracing: off
import * as T from "../../../Effect";
import * as M from "../../../Managed";
import * as Q from "../../../Queue";
import * as FromQueue from "./fromQueue";
import * as UnwrapManaged from "./unwrapManaged";
/**
 * Create a sink which enqueues each element into the specified queue.
 */

export function fromQueueWithShutdown(queue) {
  return UnwrapManaged.unwrapManaged(M.map_(M.make_(T.succeed(queue), Q.shutdown), _ => FromQueue.fromQueue(_)));
}
//# sourceMappingURL=fromQueueWithShutdown.js.map