AsyncFile.onRead

void onRead(ReadCallback callback) @safe

Register 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

callbackDelegate invoked when read completes.