mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 20:56:49 +00:00
1 parent
0e74ade7d7
commit
6e59135a7d
5 files changed
+12
-37
No files matched your search
+4
-1
@@ -1,5 +1,5 @@
|
||||
use std::{
|
||||
sync::atomic::{AtomicBool, AtomicU32},
|
||||
sync::atomic::{AtomicBool, AtomicU32, Ordering},
|
||||
time::SystemTime,
|
||||
};
|
||||
|
||||
@@ -65,4 +65,7 @@ impl Server {
|
||||
.as_ref()
|
||||
.expect("runtime handle available in Server")
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn running(&self) -> bool { !self.stopping.load(Ordering::Acquire) }
|
||||
}
|
||||
Reference in new issue
Block a user