Pipe.onData
void onData(DataCallback callback) @safeRegister a callback for data available (read end).
Fires when data arrives. The data parameter is borrowed — valid only for the duration of the callback. Copy it if needed beyond.
- Thread affinity: event loop thread only. Non-reentrant.
- Does not fire after
dispose().Parameters