mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-06 00:00:10 +02:00
task: move blocking fns into tokio::task (#1781)
This commit is contained in:
@@ -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();
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user