task: move blocking fns into tokio::task (#1781)

This commit is contained in:
Carl Lerche
2019-11-16 23:35:04 -08:00
committed by GitHub
parent 66cbed3ce3
commit b1d9e55487
7 changed files with 75 additions and 64 deletions
+1 -1
View File
@@ -268,7 +268,7 @@ fn blocking() {
for _ in 0..4 {
let block = block.clone();
rt.spawn(async move {
tokio::blocking::in_place(move || {
tokio::task::block_in_place(move || {
block.wait();
block.wait();
})