Function sep2_client::time::sleep_until

source ·
pub async fn sleep_until(timestamp: Instant, tickrate: Duration)
Expand description

Intermittently sleep until the provided instant, waking at an interval defined by rate.

This uses tokio::time:sleep, which, like thread::sleep does not make progress while the device itself is asleep, hence the intermittent wakeups.