From 85d4c954a5f201231de187966a01929312e8af9b Mon Sep 17 00:00:00 2001 From: "M.Amin Rayej" Date: Sun, 3 Sep 2023 19:17:43 +0330 Subject: [PATCH] add cancel-safety documentation for child::wait --- tokio/src/process/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tokio/src/process/mod.rs b/tokio/src/process/mod.rs index 5cf06fe6087..60c34304796 100644 --- a/tokio/src/process/mod.rs +++ b/tokio/src/process/mod.rs @@ -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)]