aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/blocking/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/blocking/mod.rs')
-rw-r--r--src/runtime/blocking/mod.rs21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/runtime/blocking/mod.rs b/src/runtime/blocking/mod.rs
index 0b36a75..fece3c2 100644
--- a/src/runtime/blocking/mod.rs
+++ b/src/runtime/blocking/mod.rs
@@ -3,22 +3,20 @@
//! shells. This isolates the complexity of dealing with conditional
//! compilation.
-cfg_blocking_impl! {
- mod pool;
- pub(crate) use pool::{spawn_blocking, try_spawn_blocking, BlockingPool, Spawner};
+mod pool;
+pub(crate) use pool::{spawn_blocking, BlockingPool, Spawner};
- mod schedule;
- mod shutdown;
- pub(crate) mod task;
+mod schedule;
+mod shutdown;
+pub(crate) mod task;
- use crate::runtime::Builder;
-
- pub(crate) fn create_blocking_pool(builder: &Builder, thread_cap: usize) -> BlockingPool {
- BlockingPool::new(builder, thread_cap)
+use crate::runtime::Builder;
- }
+pub(crate) fn create_blocking_pool(builder: &Builder, thread_cap: usize) -> BlockingPool {
+ BlockingPool::new(builder, thread_cap)
}
+/*
cfg_not_blocking_impl! {
use crate::runtime::Builder;
use std::time::Duration;
@@ -41,3 +39,4 @@ cfg_not_blocking_impl! {
}
}
}
+*/