Pipe.onClose

void onClose(CloseCallback callback) @safe

Register a callback for pipe close.

Fires when the peer closes the pipe or a fatal error occurs. Does not fire after dispose(). Thread affinity: event loop thread only. Non-reentrant.

Parameters

callbackHandler invoked when the pipe closes.