Sha256: c70ff49356fa6948f9dc53a19014a5dbf7f6bf52d4c00d9c2e20b0d23b7b3bf0
Contents?: true
Size: 567 Bytes
Versions: 60
Compression:
Stored size: 567 Bytes
Contents
use crate::runtime::task; #[cfg(test)] use std::cell::RefCell; pub(crate) trait Overflow<T: 'static> { fn push(&self, task: task::Notified<T>); fn push_batch<I>(&self, iter: I) where I: Iterator<Item = task::Notified<T>>; } #[cfg(test)] impl<T: 'static> Overflow<T> for RefCell<Vec<task::Notified<T>>> { fn push(&self, task: task::Notified<T>) { self.borrow_mut().push(task); } fn push_batch<I>(&self, iter: I) where I: Iterator<Item = task::Notified<T>>, { self.borrow_mut().extend(iter); } }
Version data entries
60 entries across 30 versions & 1 rubygems