Skip to content

Commit 84ed35e

Browse files
authored
process: document that Child::wait is cancel safe (#5977)
1 parent 95fb599 commit 84ed35e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tokio/src/process/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1166,6 +1166,10 @@ impl Child {
11661166
/// If the caller wishes to explicitly control when the child's stdin
11671167
/// handle is closed, they may `.take()` it before calling `.wait()`:
11681168
///
1169+
/// # Cancel safety
1170+
///
1171+
/// This function is cancel safe.
1172+
///
11691173
/// ```
11701174
/// # #[cfg(not(unix))]fn main(){}
11711175
/// # #[cfg(unix)]

0 commit comments

Comments
 (0)