actix-net
actix-net copied to clipboard
A collection of lower-level libraries for composable network services.
It would be nice if [with_tokio_rt](https://docs.rs/actix-web/4.8.0/actix_web/rt/struct.System.html#method.with_tokio_rt) also works with closures that e.g., return `Arc` or similar. e.g., my use-case is that my tokio runtime is declared as ``` pub static...
## PR Type Feature ## PR Checklist Check your PR fulfills the following: - [x] Tests for the changes have been added / updated. - [x] Documentation comments have been...
Recently been investigating some possible shutdown issues with one of our service. Started by suspecting that k8s was killing the service before it had time to shutdown cleanly but after...
This allows to share tokio runtimes across different sub-systems inside your application. ## PR Type Feature, Refactor https://github.com/actix/actix-net/issues/580 ## PR Checklist Check your PR fulfills the following: - [x] Tests...
**This is a tracking issue** Tokio is deprecating the `LocalSet` (https://github.com/tokio-rs/tokio/issues/6741) in favour of a new `LocalRuntime` (https://github.com/tokio-rs/tokio/issues/6739) which will avoid panics if a user mixes `tokio::spawn` with `tokio::spawn_local`/`actix_rt::spawn`. It...
I use `SystemRunner::block_on()` in my `main` function to run my http server. It is ergonomic since it passes through my `std::process::ExitCode` return value from my future. Now I would like...