Skip to main content

run_codex_with_stdin_prompt_cancellable

Function run_codex_with_stdin_prompt_cancellable 

Source
pub async fn run_codex_with_stdin_prompt_cancellable<C>(
    codex: &Codex,
    args: Vec<String>,
    prompt: &str,
    cancel: C,
) -> Result<CommandOutput>
where C: Future<Output = ()> + Send,
Expand description

Run a codex command with a stdin prompt and an explicit cancellation signal.

Cancellation and the client’s timeout both terminate the owned process group and await the direct child before returning. Retry does not apply.