import { concreteStream, StreamInternal } from "@effect/core/stream/Stream/operations/_internal/StreamInternal" /** * Executes the provided finalizer after this stream's finalizers run. * * @tsplus static effect/core/stream/Stream.Aspects ensuring * @tsplus pipeable effect/core/stream/Stream ensuring */ export function ensuring(finalizer: Effect) { return (self: Stream): Stream => { concreteStream(self) return new StreamInternal(self.channel.ensuring(finalizer)) } }