cancelAllStreamSubscriptions method

Future<void> cancelAllStreamSubscriptions()

Implementation

Future<void> cancelAllStreamSubscriptions() async {
  await Future.wait(streamSubscriptions.map((s) => s.cancel()));
  await Future.wait([
    stdoutController.close(),
    stderrController.close(),
  ]);
  streamSubscriptions.clear();
}