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