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