• D
    Rollup merge of #97149 - ChrisDenton:win_async_pipes, r=m-ou-se · 85f1de20
    Dylan DPC 提交于
    Windows: `CommandExt::async_pipes`
    
    Discussed in https://github.com/tokio-rs/tokio/issues/4670 was the need for third party crates to be able to force `process::Command::spawn` to create pipes as async.
    
    This implements the suggestion for a `async_pipes` method that gives third party crates that option.
    
    # Example:
    
    ```rust
    use std::process::{Command, Stdio};
    
    Command::new("cmd")
        .async_pipes(true)
        .stdin(Stdio::piped())
        .stdout(Stdio::piped())
        .stderr(Stdio::piped())
        .spawn()
        .unwrap();
    ```
    85f1de20
process.rs 8.5 KB