task: document cancel safety of LocalSet::run_until (#6147)

Closes: #6122
This commit is contained in:
Alice Ryhl
2023-11-14 20:13:43 +01:00
committed by GitHub
parent 06660ef00a
commit d44e995bb0
+4
View File
@@ -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