mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-07 00:00:09 +02:00
process: document that Child::wait is cancel safe (#5977)
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user