Pipe.adoptRead

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

Adopt the read end of a pipe.

Parameters

loopEvent loop to register with.
readEndFile descriptor for the read end.

Returns

0 on success, or -1 with errno set.