Skip to main content

spawn_prepared

Function spawn_prepared 

Source
pub fn spawn_prepared(
    command: Command,
    input: Option<&[u8]>,
    output_limit: usize,
    timeout: Duration,
) -> Result<AsyncCommand, Error>
Expand description

Spawn a caller-prepared bounded command for nonblocking polling. Dropping the handle cancels and reaps the process group.

ยงErrors

Error::InputTooLarge before spawning a worker.