diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-06-20 14:56:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-20 14:56:38 +0200 |
| commit | 85f1de20e76001db54d64ee0c3f9fec797075938 (patch) | |
| tree | a3a48b7d1e82a50ff787ec06c0e055becfd09981 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 625c929a9fecc7fbaf7142faaab787ba8125a62f (diff) | |
| parent | 740a54c69b1c426c2b08329ea278140eb0059d42 (diff) | |
| download | rust-85f1de20e76001db54d64ee0c3f9fec797075938.tar.gz rust-85f1de20e76001db54d64ee0c3f9fec797075938.zip | |
Rollup merge of #97149 - ChrisDenton:win_async_pipes, r=m-ou-se
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();
```
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
