import { concreteSink, SinkInternal } from "@effect/core/stream/Sink/operations/_internal/SinkInternal" /** * Creates a sink produced from a scoped effect. * * @tsplus static effect/core/stream/Sink.Ops unwrapScoped */ export function unwrapScoped( effect: Effect> ): Sink { return new SinkInternal( Channel.unwrapScoped( effect.map((sink) => { concreteSink(sink) return sink.channel }) ) ) }