summaryrefslogtreecommitdiffstats
path: root/tokio/tests/time_rt.rs
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2019-11-16 07:19:45 -0800
committerGitHub <noreply@github.com>2019-11-16 07:19:45 -0800
commit3f0eabe7798de624f5ee9c7562803bfb97e6088f (patch)
tree6458345730f7eae674ec1e7ea82f120a5f1b70bc /tokio/tests/time_rt.rs
parent1474794055e291c544c3c95d6381d549cefbd7d5 (diff)
runtime: rename current_thread -> basic_scheduler (#1769)
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.
Diffstat (limited to 'tokio/tests/time_rt.rs')
-rw-r--r--tokio/tests/time_rt.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tokio/tests/time_rt.rs b/tokio/tests/time_rt.rs
index 2576db4a..235d1960 100644
--- a/tokio/tests/time_rt.rs
+++ b/tokio/tests/time_rt.rs
@@ -24,10 +24,10 @@ fn timer_with_threaded_runtime() {
}
#[test]
-fn timer_with_current_thread_runtime() {
+fn timer_with_basic_scheduler() {
use tokio::runtime::Builder;
- let mut rt = Builder::new().current_thread().build().unwrap();
+ let mut rt = Builder::new().basic_scheduler().build().unwrap();
let (tx, rx) = mpsc::channel();
rt.block_on(async move {