pub async fn start_runner(
spec: &ProcessSpec,
mode: RunnerMode,
spawned: impl FnOnce(i32),
) -> Result<Runner, LaunchError>Expand description
Starts the runner described by spec in mode, handing it its end of a new socket pair,
and completes the handshake; spawned gets its process ID as soon as it runs.
§Errors
LaunchError if it can’t be started, doesn’t say hello in time, or is in another mode or
version (it was refused then).