import { StreamInternal } from "@effect/core/stream/Stream/operations/_internal/StreamInternal" /** * Creates a single-valued stream from a scoped resource. * * @tsplus static effect/core/stream/Stream.Ops scoped */ export function scoped(effect: Effect): Stream, E, A> { return new StreamInternal(Channel.scoped(effect.map(Chunk.single))) }