import { Fail } from "@effect/core/stream/Channel/definition/primitives" /** * Halt a channel with the specified error. * * @tsplus static effect/core/stream/Channel.Ops fail */ export function fail(e: E): Channel { return new Fail(() => Cause.fail(e)) }