mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-23 00:00:10 +02:00
process: add Command::into_std() (#7014)
This commit is contained in:
@@ -330,6 +330,15 @@ impl Command {
|
||||
&mut self.std
|
||||
}
|
||||
|
||||
/// Cheaply convert into a `std::process::Command`.
|
||||
///
|
||||
/// Note that Tokio specific options will be lost. Currently, this only applies to [`kill_on_drop`].
|
||||
///
|
||||
/// [`kill_on_drop`]: Command::kill_on_drop
|
||||
pub fn into_std(self) -> StdCommand {
|
||||
self.std
|
||||
}
|
||||
|
||||
/// Adds an argument to pass to the program.
|
||||
///
|
||||
/// Only one argument can be passed per use. So instead of:
|
||||
|
||||
Reference in New Issue
Block a user