Skip to content

Commit

Permalink
task: document cancel safety of LocalSet::run_until (#6147)
Browse files Browse the repository at this point in the history
Closes: #6122
  • Loading branch information
Darksonn committed Nov 14, 2023
1 parent 06660ef commit d44e995
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tokio/src/task/local.rs
Expand Up @@ -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
Expand Down

0 comments on commit d44e995

Please sign in to comment.