mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-29 00:00:11 +02:00
rt: Remove threaded_scheduler() and basic_scheduler() (#2876)
Co-authored-by: Alice Ryhl <[email protected]> Co-authored-by: Carl Lerche <[email protected]>
This commit is contained in:
co-authored by
Alice Ryhl
Carl Lerche
parent
0893841f31
commit
8880222036
@@ -94,10 +94,7 @@ where
|
||||
impl BlockingPool {
|
||||
pub(crate) fn new(builder: &Builder, thread_cap: usize) -> BlockingPool {
|
||||
let (shutdown_tx, shutdown_rx) = shutdown::channel();
|
||||
#[cfg(feature = "blocking")]
|
||||
let keep_alive = builder.keep_alive.unwrap_or(KEEP_ALIVE);
|
||||
#[cfg(not(feature = "blocking"))]
|
||||
let keep_alive = KEEP_ALIVE;
|
||||
|
||||
BlockingPool {
|
||||
spawner: Spawner {
|
||||
|
||||
Reference in New Issue
Block a user