Pipe.onClose
void onClose(CloseCallback callback) @safeRegister callback for close events.
Callback contract: the final callback for this pipe. Fires once on EOF, error, or explicit close. Does not fire after dispose().
Parameters
callback | Delegate invoked when the pipe closes. |