std :: async::timer
Struct std::Sleep
struct Sleep {
long long duration_ms;
long long deadline;
int armed;
int fired;
int id;
int ovf_id;
struct Waker waker;
int has_waker;
?&TimerQueue tq;
}Ready (with UNIT) once 'ms' milliseconds have passed since its first poll (Rust's tokio::time::sleep). Needs a context with timers.
Fields
set at the first poll (or by until())
deadline set
the queue woke it (deadline passed)
TimerQueue registration, 0 = none
waiting for a free wheel slot (TimerQueue::overflow), 0 = no
what the timer wakes
Methods
Ready once the executor's clock reaches 'deadline_ms'.
Re-arm for 'ms' from the next poll (it may be pending: the old registration is dropped first).