Pipe.onData
void onData(DataCallback callback) @safeRegister callback for incoming data (read end only).
Callback contract: invoked on the event loop thread. The data parameter is borrowed — valid only during the callback. Does not fire after dispose().
Parameters
callback | Delegate invoked when data is available. |