On Wed, 19 Oct 2016 05:57:04 -0700, jn...@jnthn.net wrote:
> On Fri Oct 14 16:40:27 2016, sml...@gmail.com wrote:
> > The following code attempts to pipe a large Blob (larger than a
> > pipe's
> > buffer size) through an external command.
> > However, it hangs on the `.in.close` line and never finishes:
> >
> > my $proc = run «cat -», :in, :out, :bin;
> > my $input = ("a" x 1000000).encode;
> > my $promise = start {
> >     $proc.in.write: $input;
> >     $proc.in.close;
> > }
> > say $proc.out.slurp-rest(:close, :bin).bytes;
> > await $promise;
> >
> For now, if using threads, stick with Proc::Async (in the future,
> we'll probably re-implement Proc/run etc. in terms of Proc::Async).
> 
> /jnthn

jnthn recently made the above mentioned re-implementation so the code shown in 
the report now works.

Closing issue

Reply via email to