Pipe.onData

void onData(DataCallback callback) @safe

Register 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

callbackDelegate invoked when data is available.