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