See Original text in context
multi method bind-stdin(IO::Handle )multi method bind-stdin(Proc::Async::Pipe )
Sets a handle (which must be opened) or a Pipe
as a source of STDIN
. The STDIN
of the target process must be writable or X::Proc::Async::BindOrUse will be thrown.
my = Proc::Async.new("cat", :in);my = "/etc/profile".IO.open;.bind-stdin();.start;
This is equivalent to
cat < /etc/profile
and will print the content of /etc/profile
to standard output.