summaryrefslogtreecommitdiffstats
path: root/tokio/src/task/blocking.rs
diff options
context:
space:
mode:
authorJon Gjengset <jon@thesquareplanet.com>2020-04-16 16:40:11 -0400
committerGitHub <noreply@github.com>2020-04-16 16:40:11 -0400
commit67c4cc03919a58076c139f0930f28c3c41dad1e5 (patch)
tree01a0d9f5fd68e9dbfe2a64aff62b4eaddb04e70b /tokio/src/task/blocking.rs
parent8381dff39b845bc3b74c5e5c1c7ce78e39c34fe2 (diff)
Support nested block_in_place (#2409)
Diffstat (limited to 'tokio/src/task/blocking.rs')
-rw-r--r--tokio/src/task/blocking.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/tokio/src/task/blocking.rs b/tokio/src/task/blocking.rs
index 0069b10a..9a22b0ff 100644
--- a/tokio/src/task/blocking.rs
+++ b/tokio/src/task/blocking.rs
@@ -32,9 +32,7 @@ cfg_rt_threaded! {
where
F: FnOnce() -> R,
{
- use crate::runtime::{enter, thread_pool};
-
- enter::exit(|| thread_pool::block_in_place(f))
+ crate::runtime::thread_pool::block_in_place(f)
}
}