Trait embassy_time::queue::TimerQueue
source · pub trait TimerQueue {
// Required method
fn schedule_wake(&'static self, at: Instant, waker: &Waker);
}
Expand description
Timer queue
Required Methods§
sourcefn schedule_wake(&'static self, at: Instant, waker: &Waker)
fn schedule_wake(&'static self, at: Instant, waker: &Waker)
Schedules a waker in the queue to be awoken at moment at
.
If this moment is in the past, the waker might be awoken immediately.