Commit d65460e7 authored by Dan Rubel's avatar Dan Rubel Committed by GitHub

cleanup unawaited futures lints (#5945)

parent 869371fc
...@@ -83,7 +83,7 @@ class _TaskRunner { ...@@ -83,7 +83,7 @@ class _TaskRunner {
} on TimeoutException catch (_) { } on TimeoutException catch (_) {
return new TaskResult.failure('Task timed out after $taskTimeout'); return new TaskResult.failure('Task timed out after $taskTimeout');
} finally { } finally {
forceQuitRunningProcesses(); await forceQuitRunningProcesses();
_closeKeepAlivePort(); _closeKeepAlivePort();
} }
} }
......
...@@ -34,6 +34,7 @@ Future<Map<String, dynamic>> runTask(String taskName) async { ...@@ -34,6 +34,7 @@ Future<Map<String, dynamic>> runTask(String taskName) async {
bool runnerFinished = false; bool runnerFinished = false;
// ignore: unawaited_futures
runner.exitCode.then((_) { runner.exitCode.then((_) {
runnerFinished = true; runnerFinished = true;
}); });
......
...@@ -166,6 +166,7 @@ Future<Process> startProcess(String executable, List<String> arguments, ...@@ -166,6 +166,7 @@ Future<Process> startProcess(String executable, List<String> arguments,
ProcessInfo procInfo = new ProcessInfo(command, proc); ProcessInfo procInfo = new ProcessInfo(command, proc);
_runningProcesses.add(procInfo); _runningProcesses.add(procInfo);
// ignore: unawaited_futures
proc.exitCode.then((_) { proc.exitCode.then((_) {
_runningProcesses.remove(procInfo); _runningProcesses.remove(procInfo);
}); });
......
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