rings-core 0.20.0

Chord DHT implementation with ICE
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Cooperative lifecycle primitives shared by native and browser runtimes.
//!
//! A [`StopSource`] is the authority that may request shutdown. A [`StopToken`]
//! is the read-only capability handed to long-running loops. The model is
//! intentionally monotonic: once a source requests stop, every token cloned from
//! that source observes stop forever.

mod stop;

pub use stop::StopSource;
pub use stop::StopToken;

#[cfg(test)]
mod test_lifecycle;