pub(crate) fn sleep_until(deadline: Option<Instant>)
Sleeps until the deadline, or forever if the deadline isn’t specified.