summaryrefslogtreecommitdiffstats
path: root/tokio/src/signal
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/src/signal
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/src/signal')
-rw-r--r--tokio/src/signal/registry.rs2
-rw-r--r--tokio/src/signal/windows.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/tokio/src/signal/registry.rs b/tokio/src/signal/registry.rs
index 0e017965..e4bfe758 100644
--- a/tokio/src/signal/registry.rs
+++ b/tokio/src/signal/registry.rs
@@ -304,7 +304,7 @@ mod tests {
}
fn rt() -> Runtime {
- runtime::Builder::new().current_thread().build().unwrap()
+ runtime::Builder::new().basic_scheduler().build().unwrap()
}
async fn collect(mut rx: crate::sync::mpsc::Receiver<()>) -> Vec<()> {
diff --git a/tokio/src/signal/windows.rs b/tokio/src/signal/windows.rs
index 6758566a..725518d3 100644
--- a/tokio/src/signal/windows.rs
+++ b/tokio/src/signal/windows.rs
@@ -221,7 +221,7 @@ mod tests {
fn rt() -> Runtime {
crate::runtime::Builder::new()
- .current_thread()
+ .basic_scheduler()
.build()
.unwrap()
}