Unverified Commit 8b25d4ea authored by Mikkel Nygaard Ravn's avatar Mikkel Nygaard Ravn Committed by GitHub

Add missing awaits (#15595)

parent 537e6726
...@@ -225,10 +225,10 @@ class AndroidWorkflow extends DoctorValidator implements Workflow { ...@@ -225,10 +225,10 @@ class AndroidWorkflow extends DoctorValidator implements Workflow {
environment: androidSdk.sdkManagerEnv, environment: androidSdk.sdkManagerEnv,
); );
waitGroup<Null>(<Future<Null>>[ process.stdin.addStream(stdin);
await waitGroup<Null>(<Future<Null>>[
stdout.addStream(process.stdout), stdout.addStream(process.stdout),
stderr.addStream(process.stderr), stderr.addStream(process.stderr),
process.stdin.addStream(stdin),
]); ]);
final int exitCode = await process.exitCode; final int exitCode = await process.exitCode;
......
...@@ -194,7 +194,7 @@ Future<int> runInteractively(List<String> command, { ...@@ -194,7 +194,7 @@ Future<int> runInteractively(List<String> command, {
process.stdin.addStream(stdin); process.stdin.addStream(stdin);
// Wait for stdout and stderr to be fully processed, because process.exitCode // Wait for stdout and stderr to be fully processed, because process.exitCode
// may complete first. // may complete first.
Future.wait<dynamic>(<Future<dynamic>>[ await Future.wait<dynamic>(<Future<dynamic>>[
stdout.addStream(process.stdout), stdout.addStream(process.stdout),
stderr.addStream(process.stderr), stderr.addStream(process.stderr),
]); ]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment