import { concreteTake } from "@effect/core/stream/Take/operations/_internal/TakeInternal"
/**
* Returns an effect that effectfully "peeks" at the success of this take.
*
* @tsplus static effect/core/stream/Take.Aspects tap
* @tsplus pipeable effect/core/stream/Take tap
*/
export function tap(
f: (chunk: Chunk) => Effect
) {
return (self: Take): Effect => {
concreteTake(self)
return self._exit.forEach(f).unit
}
}