1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-08-31 20:56:59 +02:00

Expose is_set (#99)

* Expose is_set

* Update doc and changes.md
This commit is contained in:
Bo Yao
2020-02-24 21:55:02 -08:00
committed by GitHub
parent 4f2910c6b3
commit 602db1779e
2 changed files with 6 additions and 2 deletions

View File

@@ -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())
}