flush static method

Future<void> flush()

Writes any pending index changes now. Call before the app is terminated if you have written in the last half second.

Implementation

static Future<void> flush() async {
  for (final _BucketIndex index in _indexes.values) {
    if (index._saveTimer != null) await _saveIndex(index);
  }
}