diff --git a/tokio/src/util/linked_list.rs b/tokio/src/util/linked_list.rs index 432057fbc..ca6ef0e7b 100644 --- a/tokio/src/util/linked_list.rs +++ b/tokio/src/util/linked_list.rs @@ -342,6 +342,15 @@ cfg_io_readiness! { } cfg_taskdump! { + impl CountedLinkedList { + pub(crate) fn for_each(&mut self, f: F) + where + F: FnMut(&T::Handle), + { + self.list.for_each(f) + } + } + impl LinkedList { pub(crate) fn for_each(&mut self, mut f: F) where