import { concreteTake } from "@effect/core/stream/Take/operations/_internal/TakeInternal" /** * Checks if this `Take` is a failure. * * @tsplus getter effect/core/stream/Take isFailure */ export function isFailure(self: Take): boolean { concreteTake(self) return self._exit.fold((cause) => Cause.flipCauseMaybe(cause).isSome(), () => false) }