Pipe.adoptWrite

int adoptWrite(ref EventLoop loop, Handle writeEnd) @trusted

Adopt a pipe handle for writing.

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

Parameters

loopEvent loop to register with.
writeEndPipe handle for writing.

Returns

0 on success, or -1 with error set.