diff --git a/actix-rt/CHANGES.md b/actix-rt/CHANGES.md index 7c7ad63d..a7792455 100644 --- a/actix-rt/CHANGES.md +++ b/actix-rt/CHANGES.md @@ -1,5 +1,9 @@ # Changes +## [TBD] - [TBD] + +- Expose `System::is_set` to check if current system is running + ## [1.0.0] - 2019-12-11 * Update dependencies diff --git a/actix-rt/src/system.rs b/actix-rt/src/system.rs index 383471cd..1e5beec7 100644 --- a/actix-rt/src/system.rs +++ b/actix-rt/src/system.rs @@ -79,8 +79,8 @@ impl System { }) } - /// Set current running system. - pub(crate) fn is_set() -> bool { + /// Check if current system is running. + pub fn is_set() -> bool { CURRENT.with(|cell| cell.borrow().is_some()) }