shutdownIdbBackend function

Future<void> shutdownIdbBackend()

Closes cached IndexedDB connections (tests/hot restart).

Implementation

Future<void> shutdownIdbBackend() async {
  for (final entry in _IdbStore._instances.values) {
    final store = await entry;
    try {
      store.db.callMethod('close'.toJS);
    } catch (_) {}
  }
  _IdbStore._instances.clear();
}