mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-20 00:00:08 +02:00
task: document cancel safety of LocalSet::run_until (#6147)
Closes: #6122
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user