cancelAllStreamSubscriptions method

Future<void> cancelAllStreamSubscriptions()

Implementation

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