Skip to main content

start_process

Function start_process 

Source
pub async fn start_process<S: AsRef<str>>(
    file: &str,
    args: &[S],
    options: StartProcessOptions,
) -> Result<ManagedProcess, CommandError>
Expand description

Start a long-running process, such as a browser.

file receives exactly args, without a shell. The process’s output is drained continuously and delivered to the listeners in options. Must be called inside a Tokio runtime.