process: omit several future types in favor of async/await (#1526)

This commit is contained in:
Ivan Petkov
2019-08-31 13:02:27 -07:00
committed by GitHub
parent 431d4857e8
commit 9766cd644f
2 changed files with 38 additions and 130 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ async fn status_closes_any_pipes() {
// Cat will open a pipe between the parent and child.
// If `status_async` doesn't ensure the handles are closed,
// we would end up blocking forever (and time out).
let child = cat().status().expect("failed to spawn child");
let child = cat().status();
with_timeout(child)
.await