removeRuntime method
FR-RUNTIME-003
Implementation
Future<void> removeRuntime(AppHandle handle) async {
final runtime = _runtimes[handle];
if (runtime == null) return;
_logger.debug('Removing runtime', {'handle': handle.toString()});
try {
await runtime.destroy();
} catch (e, st) {
_logger.logError('Runtime destroy failed', e, st,
{'handle': handle.toString()});
}
_runtimes.remove(handle);
notifyListeners();
}