mirror of https://github.com/fafhrd91/actix-net
Expose is_set
This commit is contained in:
parent
4f2910c6b3
commit
4b0808de64
actix-rt/src
|
@ -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())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue