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