diff --git a/actix-rt/CHANGES.md b/actix-rt/CHANGES.md index 73bcac5c..4262c82e 100644 --- a/actix-rt/CHANGES.md +++ b/actix-rt/CHANGES.md @@ -2,16 +2,18 @@ ## Unreleased - 2021-xx-xx +* Rename `Arbiter => Worker`. [#254] * Remove `run_in_tokio`, `attach_to_tokio` and `AsyncSystemRunner`. [#253] * Return `JoinHandle` from `actix_rt::spawn`. [#253] -* Remove old `Arbiter::spawn`. Implementation is now inlined into `actix_rt::spawn`. [#253] -* Rename `Arbiter::{send => spawn}` and `Arbiter::{exec_fn => spawn_fn}`. [#253] -* Remove `Arbiter::exec`. [#253] -* Remove deprecated `Arbiter::local_join` and `Arbiter::is_running`. [#253] -* Rename `Arbiter => Worker`. [#254] +* Remove old `Worker::spawn`. Implementation is now inlined into `actix_rt::spawn`. [#253] +* Rename `Worker::{send => spawn}` and `Worker::{exec_fn => spawn_fn}`. [#253] +* Remove `Worker::exec`. [#253] +* Remove deprecated `Worker::local_join` and `Worker::is_running`. [#253] +* `Worker::spawn` now accepts !Unpin futures. [#256] [#253]: https://github.com/actix/actix-net/pull/253 [#254]: https://github.com/actix/actix-net/pull/254 +[#256]: https://github.com/actix/actix-net/pull/256 ## 2.0.0-beta.2 - 2021-01-09 diff --git a/actix-rt/Cargo.toml b/actix-rt/Cargo.toml index f5a6ba6a..68ed8563 100644 --- a/actix-rt/Cargo.toml +++ b/actix-rt/Cargo.toml @@ -27,4 +27,3 @@ tokio = { version = "1", features = ["rt", "net", "parking_lot", "signal", "sync [dev-dependencies] tokio = { version = "1", features = ["full"] } -futures-util = { version = "0.3.7", default-features = true, features = ["alloc"] } diff --git a/actix-rt/tests/tests.rs b/actix-rt/tests/tests.rs index e05e8975..f100c7ce 100644 --- a/actix-rt/tests/tests.rs +++ b/actix-rt/tests/tests.rs @@ -136,12 +136,10 @@ fn worker_drop_no_panic_fn() { #[test] fn worker_drop_no_panic_fut() { - use futures_util::future::lazy; - let _ = System::new("test-system"); let mut worker = Worker::new(); - worker.spawn(lazy(|_| panic!("test"))); + worker.spawn(async { panic!("test") }); worker.stop(); worker.join().unwrap();