pub trait IdleStrategy {
// Required method
fn idle(&mut self, work_count: i32);
// Provided method
fn reset(&mut self) { ... }
}Expand description
Back off a poll loop when the last cycle did no work. Mirrors Aeron’s IdleStrategy:
idle(work_count) returns immediately when work_count > 0, otherwise spins / yields /
sleeps depending on the implementation.