process: document that Child::wait is cancel safe (#5977)

This commit is contained in:
M.Amin Rayej
2023-09-04 10:24:55 +02:00
committed by GitHub
parent 95fb599664
commit 84ed35ef70
+4
View File
@@ -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)]