tokio: update threaded runtime to std::future (#1280)

re-enables the threaded runtime and sets it (again) as the default.
This commit is contained in:
Carl Lerche
2019-07-10 11:21:06 -07:00
committed by GitHub
parent e5525628cd
commit bd3f3270db
20 changed files with 418 additions and 864 deletions
+5 -1
View File
@@ -188,7 +188,11 @@ impl Drop for ThreadPool {
drop(inner);
// Wait until all worker threads terminate and the threadpool's resources clean up.
let mut enter = tokio_executor::enter().unwrap();
let mut enter = match tokio_executor::enter() {
Ok(e) => e,
Err(_) => return,
};
enter.block_on(shutdown);
}
}