mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-24 04:52:58 +01:00
expose with_tokio_rt (#430)
This commit is contained in:
parent
459a6d1b02
commit
e92b5aaf31
@ -1,6 +1,9 @@
|
|||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
## Unreleased - 2021-xx-xx
|
## 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
|
## 2.5.0 - 2021-11-22
|
||||||
|
@ -108,7 +108,6 @@ impl Arbiter {
|
|||||||
///
|
///
|
||||||
/// [tokio-runtime]: tokio::runtime::Runtime
|
/// [tokio-runtime]: tokio::runtime::Runtime
|
||||||
#[cfg(not(all(target_os = "linux", feature = "io-uring")))]
|
#[cfg(not(all(target_os = "linux", feature = "io-uring")))]
|
||||||
#[doc(hidden)]
|
|
||||||
pub fn with_tokio_rt<F>(runtime_factory: F) -> Arbiter
|
pub fn with_tokio_rt<F>(runtime_factory: F) -> Arbiter
|
||||||
where
|
where
|
||||||
F: Fn() -> tokio::runtime::Runtime + Send + 'static,
|
F: Fn() -> tokio::runtime::Runtime + Send + 'static,
|
||||||
|
@ -46,7 +46,6 @@ impl System {
|
|||||||
/// Create a new System using the [Tokio Runtime](tokio-runtime) returned from a closure.
|
/// Create a new System using the [Tokio Runtime](tokio-runtime) returned from a closure.
|
||||||
///
|
///
|
||||||
/// [tokio-runtime]: tokio::runtime::Runtime
|
/// [tokio-runtime]: tokio::runtime::Runtime
|
||||||
#[doc(hidden)]
|
|
||||||
pub fn with_tokio_rt<F>(runtime_factory: F) -> SystemRunner
|
pub fn with_tokio_rt<F>(runtime_factory: F) -> SystemRunner
|
||||||
where
|
where
|
||||||
F: Fn() -> tokio::runtime::Runtime,
|
F: Fn() -> tokio::runtime::Runtime,
|
||||||
|
Loading…
Reference in New Issue
Block a user