AsyncFile.onRead
void onRead(ReadCallback callback) @safeRegister callback for read completion.
Fires when an async read completes. The data parameter in the callback is caller-owned — valid until the next read is issued or the file is closed. Thread affinity: event loop thread only. Non-reentrant.
Parameters
callback | Delegate invoked when read completes. |