mirror of https://github.com/fafhrd91/actix-net
Expose is_set
This commit is contained in:
parent
4f2910c6b3
commit
4b0808de64
|
@ -79,8 +79,8 @@ impl System {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set current running system.
|
/// Check current system is running.
|
||||||
pub(crate) fn is_set() -> bool {
|
pub fn is_set() -> bool {
|
||||||
CURRENT.with(|cell| cell.borrow().is_some())
|
CURRENT.with(|cell| cell.borrow().is_some())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue