Pipe.onClose
void onClose(CloseCallback callback) @safeRegister 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
callback | Handler invoked when the pipe closes. |