diff --git a/tokio/src/time/interval.rs b/tokio/src/time/interval.rs index a63e47b6ea6..fe581707185 100644 --- a/tokio/src/time/interval.rs +++ b/tokio/src/time/interval.rs @@ -367,6 +367,11 @@ pub struct Interval { impl Interval { /// Completes when the next instant in the interval has been reached. /// + /// # Cancel safety + /// + /// This method is cancellation safe. If `tick` is used as the branch in a `tokio::select!` and + /// another branch completes first, then no tick has been consumed. + /// /// # Examples /// /// ```