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

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