diff options
author | Carl Lerche <me@carllerche.com> | 2019-11-16 23:35:04 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-16 23:35:04 -0800 |
commit | b1d9e55487d8411da89788ce0fbb3eb99a1f3a40 (patch) | |
tree | 4561bcaec9e2b011e6741c7fdc84fdefa1716deb /tokio/tests/rt_threaded.rs | |
parent | 66cbed3ce302e43f18c7d0a6673886404570fb39 (diff) |
task: move blocking fns into `tokio::task` (#1781)
Diffstat (limited to 'tokio/tests/rt_threaded.rs')
-rw-r--r-- | tokio/tests/rt_threaded.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio/tests/rt_threaded.rs b/tokio/tests/rt_threaded.rs index 7daf331b..8be6d036 100644 --- a/tokio/tests/rt_threaded.rs +++ b/tokio/tests/rt_threaded.rs @@ -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(); }) |