Open Sytten opened 1 week ago
This is also likely to improve your performance a bit.
It's also possible that LocalRuntime
will be easy enough to use that we can just make actix-rt optional altogether. In particular, if there's a #[tokio::main(flavor = "local")]
or similar.
It's also possible that
LocalRuntime
will be easy enough to use that we can just make actix-rt optional altogether. In particular, if there's a#[tokio::main(flavor = "local")]
or similar.
You should leave this in the LocalSet issue thread as well so folks know that the macros are something you care about.
We will still need the system and arbiter concepts so pretty sure we will keep the crate around for some time.
We'd only need them for actors. The crate can stay around but it would be removed from the dependency tree of actix-web
in a major release.
This is a tracking issue
Tokio is deprecating the
LocalSet
(https://github.com/tokio-rs/tokio/issues/6741) in favour of a newLocalRuntime
(https://github.com/tokio-rs/tokio/issues/6739) which will avoid panics if a user mixestokio::spawn
withtokio::spawn_local
/actix_rt::spawn
. It should also improve performances.Once this is released we should migrate to the new runtime.