import { TakeInternal } from "@effect/core/stream/Take/operations/_internal/TakeInternal" /** * Creates a failing `Take` with the specified cause. * * @tsplus static effect/core/stream/Take.Ops failCause */ export function failCause(cause: Cause): Take { return new TakeInternal(Exit.failCause(cause.map(Maybe.some))) }