clear method
Implementation
Future clear() async {
final nextLoad = _reloadCompletions.stream.first;
if (!_values.isFirstResolved) {
await nextLoad;
}
if (_data.isNotEmpty) {
await _lock.synchronized(() async {
await applyChanges((changes) {
_data.keys.forEach((MKey? key) => changes.unset(key!));
_data.clear();
}, replacement: {});
_values.reset();
});
}
}