Skip to main content

spawn_cancellable

Function spawn_cancellable 

Source
pub fn spawn_cancellable<P: AsRef<OsStr>>(
    program: P,
    args: &[&str],
    cancel_rx: &Receiver<()>,
    grace_ms: u64,
) -> ToolCallResult
Expand description

Generic over the binary. run_apr_cancellable binds program to crate::apr_bin::apr_binary — the running apr executable — which is what production code should use.