use crate::runtime::task; #[cfg(test)] use std::cell::RefCell; pub(crate) trait Overflow { fn push(&self, task: task::Notified); fn push_batch(&self, iter: I) where I: Iterator>; } #[cfg(test)] impl Overflow for RefCell>> { fn push(&self, task: task::Notified) { self.borrow_mut().push(task); } fn push_batch(&self, iter: I) where I: Iterator>, { self.borrow_mut().extend(iter); } }