Skip to main content

run_command_blocking

Function run_command_blocking 

Source
pub fn run_command_blocking<S: AsRef<str>>(
    file: &str,
    args: &[S],
    options: RunCommandOptions,
) -> Result<CommandOutput, CommandError>
Expand description

Synchronous run_command for code that is not async, such as the credential-store readers.

command-stream’s blocking collector refuses to run inside a Tokio runtime, so when one is active the command is collected on a short-lived thread of its own instead.