AsyncFile.onError

void onError(ErrorCallback callback) @safe

Register callback for error conditions.

Fires on I/O errors. The file may remain usable after transient errors. Thread affinity: event loop thread only. Non-reentrant.

Parameters

callbackDelegate invoked on error.