tee()
Brian Goetz
brian.goetz at oracle.com
Fri Jan 25 11:08:59 PST 2013
Try writing a parallel version that consumes from an infinite IO source,
and you'll see why :)
On 1/25/2013 2:02 PM, Sam Pullara wrote:
> Why not just make a true tee() that duplicates the stream and you can
> use that for debugging?
>
> Sam
>
> On Fri, Jan 25, 2013 at 7:59 AM, Brian Goetz <brian.goetz at oracle.com> wrote:
>>> In which case tee() needs more than the usual number of disclaimers about
>>> please not side-effecting the source...
>>
>>
>> The exact same number of disclaimers -- it is never OK -- but we can remind
>> everyonhe that the purpose of the peek() method is for debugging, not for
>> side-effecting anything that counts. Even less so than forEach.
>>
>>
More information about the lambda-libs-spec-experts
mailing list