Pipe.adoptRead

int adoptRead(ref EventLoop loop, Handle readEnd) @trusted

Adopt a pipe handle for reading.

Parameters

loopEvent loop to register with.
readEndPipe handle for reading.

Returns

0 on success, or -1 with error set.