monoloop-loop 0.1.2

Minimal extensible Loop: lossless canonical subscription, empty-capable tools
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Quiescing / stopped wait surface (v2 ยง18).

/// Opaque ticket from [`super::owner::RuntimeOwner::begin_shutdown`].
#[derive(Clone, Debug)]
pub struct ShutdownTicket {
    /// Shutdown generation shared by concurrent waiters.
    pub(crate) generation: u64,
}

impl ShutdownTicket {
    /// Shutdown generation id.
    pub fn generation(&self) -> u64 {
        self.generation
    }
}