Expose is_set

This commit is contained in:
Bo Yao 2020-02-21 17:44:51 -08:00
parent 4f2910c6b3
commit 4b0808de64
1 changed files with 2 additions and 2 deletions
actix-rt/src

View File

@ -79,8 +79,8 @@ impl System {
})
}
/// Set current running system.
pub(crate) fn is_set() -> bool {
/// Check current system is running.
pub fn is_set() -> bool {
CURRENT.with(|cell| cell.borrow().is_some())
}