Skip to main content

run

Function run 

Source
pub(super) async fn run<Args>(
    program: &str,
    args: Args,
    limit: u64,
    deadline: Instant,
) -> Result<Vec<u8>>
where Args: IntoIterator<Item: AsRef<str>> + Send,
Expand description

Collect the frame the program writes to standard output, refusing one past the limit rather than decoding a truncation. The program runs in its own process group, so a wrapper overrunning the deadline cannot orphan the work it spawned.