From 3f0eabe7798de624f5ee9c7562803bfb97e6088f Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Sat, 16 Nov 2019 07:19:45 -0800 Subject: runtime: rename current_thread -> basic_scheduler (#1769) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It no longer supports executing !Send futures. The use case for It is wanting a “light” runtime. There will be “local” task execution using a different strategy coming later. This patch also renames `thread_pool` -> `threaded_scheduler`, but only in public APIs for now. --- tokio/tests/rt_common.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tokio/tests/rt_common.rs') diff --git a/tokio/tests/rt_common.rs b/tokio/tests/rt_common.rs index 2637793a..6e8e58fb 100644 --- a/tokio/tests/rt_common.rs +++ b/tokio/tests/rt_common.rs @@ -4,12 +4,12 @@ macro_rules! rt_test { ($($t:tt)*) => { - mod current_thread { + mod basic_scheduler { $($t)* fn rt() -> Runtime { tokio::runtime::Builder::new() - .current_thread() + .basic_scheduler() .build() .unwrap() } -- cgit v1.2.3