mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-23 19:51:06 +01:00
parent
4f2910c6b3
commit
602db1779e
@ -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
|
||||
|
@ -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())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user