tokio: add CountedLinkedList::for_each (#5660)

This commit is contained in:
Jack Wrenn
2023-04-27 22:24:44 +02:00
committed by GitHub
parent 660eac71f0
commit f478ff4a24
+9
View File
@@ -342,6 +342,15 @@ cfg_io_readiness! {
}
cfg_taskdump! {
impl<T: Link> CountedLinkedList<T, T::Target> {
pub(crate) fn for_each<F>(&mut self, f: F)
where
F: FnMut(&T::Handle),
{
self.list.for_each(f)
}
}
impl<T: Link> LinkedList<T, T::Target> {
pub(crate) fn for_each<F>(&mut self, mut f: F)
where