I created this doc issue: https://github.com/perl6/doc/issues/1591
On 2017-10-07 19:33:40, allber...@gmail.com wrote: > On Sat, Oct 7, 2017 at 10:21 PM, Itsuki Toyota <perl6-bugs-follo...@perl.org > > wrote: > > > See the following result: > > > > $ perl6 -e 'my $proc = Proc::Async.new("yes"); > > $proc.stdout.head(1).tap(&say); await $proc.start;' > > > > y > > y > > y > > y > > y > > y > > y > > y > > ... > > > > > > I think tap(&say) should output just a 'y' char and completes its work. > > > > No guarantee it's line based, nor do pipes deliver output in lines. You > wanted a .lines in there to 'rechunk' the output; otherwise I suspect you > get blocks based on the size of am OS pipe buffer, or similar. > > https://docs.perl6.org/type/Supply#method_lines > >