Skip to content

Commit

Permalink
process: document that Child::wait is cancel safe (#5977)
Browse files Browse the repository at this point in the history
  • Loading branch information
maminrayej committed Sep 4, 2023
1 parent 95fb599 commit 84ed35e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tokio/src/process/mod.rs
Expand Up @@ -1166,6 +1166,10 @@ impl Child {
/// If the caller wishes to explicitly control when the child's stdin
/// handle is closed, they may `.take()` it before calling `.wait()`:
///
/// # Cancel safety
///
/// This function is cancel safe.
///
/// ```
/// # #[cfg(not(unix))]fn main(){}
/// # #[cfg(unix)]
Expand Down

0 comments on commit 84ed35e

Please sign in to comment.