Skip to content

Commit

Permalink
process: add Command::into_std() (#7014)
Browse files Browse the repository at this point in the history
  • Loading branch information
czy-29 authored Dec 7, 2024
1 parent 67355c6 commit dc16b12
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tokio/src/process/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit dc16b12

Please sign in to comment.