pub async fn run<F, R>(
command: Command,
cancellation: CancellationToken,
register: F,
) -> Result<Output, Error>Expand description
Register the inert child before allowing exec. A rejected, cancelled, or timed-out registration cannot start user code. The callback must not block its executor. Dropping this future cancels execution; its supervisor still kills and reaps it.