killLaunchedApps method

Future<void> killLaunchedApps()

Kills every flutter run process glint started. Called from the server shutdown path so a dying glint never orphans its children.

Implementation

Future<void> killLaunchedApps() async {
  final launched = _launchedApps.values.toList();
  _launchedApps.clear();
  await Future.wait([for (final process in launched) killProcessTree(process)]);
}