dispatchLogCalls method
- @mustCallSuper
Dispatches all log calls that exist on _logCalls
array in a FIFO order.
Uses _lock
to grant mutual exclusion access on the log calls dispatch.
Implementation
@mustCallSuper
void dispatchLogCalls() {
if (!_lock) {
_lock = true;
while (_logCalls.isNotEmpty) {
_logCalls.removeAt(0)();
}
_lock = false;
}
}