diff options
author | Carl Lerche <me@carllerche.com> | 2019-11-16 07:19:45 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-16 07:19:45 -0800 |
commit | 3f0eabe7798de624f5ee9c7562803bfb97e6088f (patch) | |
tree | 6458345730f7eae674ec1e7ea82f120a5f1b70bc /tokio-test | |
parent | 1474794055e291c544c3c95d6381d549cefbd7d5 (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-test')
-rw-r--r-- | tokio-test/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio-test/src/lib.rs b/tokio-test/src/lib.rs index e6e9019e..bdd4a9f9 100644 --- a/tokio-test/src/lib.rs +++ b/tokio-test/src/lib.rs @@ -27,7 +27,7 @@ pub mod task; pub fn block_on<F: std::future::Future>(future: F) -> F::Output { use tokio::runtime; - let mut rt = runtime::Builder::new().current_thread().build().unwrap(); + let mut rt = runtime::Builder::new().basic_scheduler().build().unwrap(); rt.block_on(future) } |