fn wait_until(
child: &mut Child,
deadline: Instant,
) -> Result<Option<ExitStatus>>Expand description
Poll child until it exits or deadline passes. On overrun the child is
killed and reaped (so it can’t linger as a zombie) and Ok(None) is
returned; otherwise Ok(Some(status)).