AsyncFile.onRead

void onRead(ReadCallback callback) @safe

Register callback for read completion.

Callback contract: fires on the loop thread. The data slice is borrowed — valid only during callback execution.

Parameters

callbackDelegate invoked when read completes.