From e92b5aaf314bc384122dec4360175ca29f9b14fb Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Mon, 27 Dec 2021 16:00:26 +0000 Subject: [PATCH] expose with_tokio_rt (#430) --- actix-rt/CHANGES.md | 3 +++ actix-rt/src/arbiter.rs | 1 - actix-rt/src/system.rs | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/actix-rt/CHANGES.md b/actix-rt/CHANGES.md index e42be17b9f..abfb6c95d4 100644 --- a/actix-rt/CHANGES.md +++ b/actix-rt/CHANGES.md @@ -1,6 +1,9 @@ # Changes ## Unreleased - 2021-xx-xx +- Expose `System::with_tokio_rt` and `Arbiter::with_tokio_rt`. [#430] + +[#430]: https://github.com/actix/actix-net/pull/430 ## 2.5.0 - 2021-11-22 diff --git a/actix-rt/src/arbiter.rs b/actix-rt/src/arbiter.rs index 43b1bdc361..95256360c3 100644 --- a/actix-rt/src/arbiter.rs +++ b/actix-rt/src/arbiter.rs @@ -108,7 +108,6 @@ impl Arbiter { /// /// [tokio-runtime]: tokio::runtime::Runtime #[cfg(not(all(target_os = "linux", feature = "io-uring")))] - #[doc(hidden)] pub fn with_tokio_rt(runtime_factory: F) -> Arbiter where F: Fn() -> tokio::runtime::Runtime + Send + 'static, diff --git a/actix-rt/src/system.rs b/actix-rt/src/system.rs index 635f3c187e..0ea3547da3 100644 --- a/actix-rt/src/system.rs +++ b/actix-rt/src/system.rs @@ -46,7 +46,6 @@ impl System { /// Create a new System using the [Tokio Runtime](tokio-runtime) returned from a closure. /// /// [tokio-runtime]: tokio::runtime::Runtime - #[doc(hidden)] pub fn with_tokio_rt(runtime_factory: F) -> SystemRunner where F: Fn() -> tokio::runtime::Runtime,