diff --git a/actix-rt/CHANGES.md b/actix-rt/CHANGES.md index 9b5fb636..0560ad31 100644 --- a/actix-rt/CHANGES.md +++ b/actix-rt/CHANGES.md @@ -6,6 +6,16 @@ * Add `System::attach_to_tokio` method. [#173] +### Changed + +* Deprecate `Arbiter::is_running`and `Arbiter::local_join`. `Arbiter::spawn` would panic when `System` is not in scope. [#207] + +### Fixed + +* Fix work load issue by removing `PENDDING` thread local. [#207] + +[#207]: https://github.com/actix/actix-net/pull/207 + ## [1.1.1] - 2020-04-30 ### Fixed diff --git a/actix-rt/src/lib.rs b/actix-rt/src/lib.rs index d3b64187..12ad478d 100644 --- a/actix-rt/src/lib.rs +++ b/actix-rt/src/lib.rs @@ -63,7 +63,3 @@ pub mod time { pub use tokio::time::{interval, interval_at, Interval}; pub use tokio::time::{timeout, Timeout}; } - -pub mod task { - pub use tokio::task::yield_now; -} diff --git a/actix-rt/src/runtime.rs b/actix-rt/src/runtime.rs index 1e782e0b..da1f6d0d 100644 --- a/actix-rt/src/runtime.rs +++ b/actix-rt/src/runtime.rs @@ -24,7 +24,10 @@ impl Runtime { .basic_scheduler() .build()?; - Ok(Runtime { rt, local: LocalSet::new() }) + Ok(Runtime { + rt, + local: LocalSet::new(), + }) } pub(super) fn local(&self) -> &LocalSet {