monoloop_loop/transaction/lifecycle/shutdown.rs
1//! Quiescing / stopped wait surface (v2 ยง18).
2
3/// Opaque ticket from [`super::owner::RuntimeOwner::begin_shutdown`].
4#[derive(Clone, Debug)]
5pub struct ShutdownTicket {
6 /// Shutdown generation shared by concurrent waiters.
7 pub(crate) generation: u64,
8}
9
10impl ShutdownTicket {
11 /// Shutdown generation id.
12 pub fn generation(&self) -> u64 {
13 self.generation
14 }
15}