summaryrefslogtreecommitdiffstats
path: root/tokio/src/runtime/handle.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/src/runtime/handle.rs')
-rw-r--r--tokio/src/runtime/handle.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tokio/src/runtime/handle.rs b/tokio/src/runtime/handle.rs
index 2024cffd..93644840 100644
--- a/tokio/src/runtime/handle.rs
+++ b/tokio/src/runtime/handle.rs
@@ -1,5 +1,5 @@
#[cfg(feature = "rt-core")]
-use crate::runtime::current_thread;
+use crate::runtime::basic_scheduler;
#[cfg(feature = "rt-full")]
use crate::runtime::thread_pool;
use crate::runtime::{blocking, io, time};
@@ -30,7 +30,7 @@ pub struct Handle {
pub(super) enum Kind {
Shell,
#[cfg(feature = "rt-core")]
- CurrentThread(current_thread::Spawner),
+ Basic(basic_scheduler::Spawner),
#[cfg(feature = "rt-full")]
ThreadPool(thread_pool::Spawner),
}
@@ -76,7 +76,7 @@ impl Handle {
match &self.kind {
Kind::Shell => panic!("spawning not enabled for runtime"),
#[cfg(feature = "rt-core")]
- Kind::CurrentThread(spawner) => spawner.spawn(future),
+ Kind::Basic(spawner) => spawner.spawn(future),
#[cfg(feature = "rt-full")]
Kind::ThreadPool(spawner) => spawner.spawn(future),
}