class IO::Pipe
ErrorsCollection

class IO::Pipe

Buffered inter-process string or binary stream

class IO::Pipe is IO::Handle {}

An IO::Pipe object closely corresponds to a UNIX pipe. It has one end where it consumes string or binary data, and another where it reproduces the same data. It is buffered, so that a write without a read doesn't immediately block.

Pipes can be easily constructed with sub run and Proc::Async.new.

Methods

method close

method close(IO::Pipe: --> Proc:D)

Closes the pipe and returns Proc object from which the pipe originates.

method IO

method IO(IO::Pipe: --> IO::Path:U)

Returns an IO::Path type object.

method path

method path(IO::Pipe: --> IO::Path:U)

Returns an IO::Path type object.

method proc

method proc(IO::Pipe: --> Proc:D)

Returns the Proc object from which the pipe originates.