Pipe.adoptRead

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

Adopt a pipe handle for reading.

On success, EVE takes ownership of the read handle and the caller must not close it. On failure, ownership remains with the caller.

Parameters

loopEvent loop to register with.
readEndPipe handle for reading.

Returns

0 on success, or -1 with error set.