removeAllRuntimes method
FR-RUNTIME-004
Implementation
Future<void> removeAllRuntimes() async {
_logger.debug('Removing all runtimes',
{'count': _runtimes.length});
for (final entry in _runtimes.entries.toList()) {
try {
await entry.value.destroy();
} catch (e, st) {
_logger.logError('Runtime destroy failed', e, st,
{'handle': entry.key.toString()});
}
}
_runtimes.clear();
notifyListeners();
}