diff --git a/tokio/src/task/local.rs b/tokio/src/task/local.rs index 9caaca629df..3e5c93abb21 100644 --- a/tokio/src/task/local.rs +++ b/tokio/src/task/local.rs @@ -602,6 +602,10 @@ impl LocalSet { /// will remain on the local set, and will be driven on subsequent calls to /// `run_until` or when [awaiting the local set] itself. /// + /// # Cancel safety + /// + /// This method is cancel safe when `future` is cancel safe. + /// /// # Examples /// /// ```rust