import * as tsplus_module_1 from "@effect/core/io/Effect/operations/map";
import * as tsplus_module_2 from "@effect/core/stream/Channel/operations/unwrapScoped";
import { concreteSink, SinkInternal } from "@effect/core/stream/Sink/operations/_internal/SinkInternal";
/**
 * Creates a sink produced from a scoped effect.
 *
 * @tsplus static ets/Sink/Ops unwrapScoped
 */

export function unwrapScoped(effect, __tsplusTrace) {
  return new SinkInternal(tsplus_module_2.unwrapScoped(tsplus_module_1.map_(effect(), sink => {
    void 0;
    return sink.channel;
  }, __tsplusTrace)));
}
//# sourceMappingURL=unwrapScoped.mjs.map