import { ContinuationK, Read } from "@effect/core/stream/Channel/definition/primitives" /** * @tsplus static effect/core/stream/Channel.Ops readOrFail */ export function readOrFail( e: E ): Channel { return new Read( (i) => Channel.succeed(i), new ContinuationK( () => Channel.fail(e), () => Channel.fail(e) ) ) }