T M
class IO::Pipe
Error ReportCollection examples

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

Defined as:

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

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

method IO

Defined as:

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

Returns an IO::Path type object.

method path

Defined as:

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

Returns an IO::Path type object.

method proc

Defined as:

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

Returns the Proc object from which the pipe originates.