Skip to content

Commit 0f1fba5

Browse files
committed
tokio: add CountedLinkedList::for_each
Resolves a semantic conflict between tokio-rs#5608 and tokio-rs#5628. ref: https://discord.com/channels/500028886025895936/500336346770964480/1100809662208675982
1 parent 660eac7 commit 0f1fba5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tokio/src/util/linked_list.rs

+9
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,15 @@ cfg_io_readiness! {
342342
}
343343

344344
cfg_taskdump! {
345+
impl<T: Link> CountedLinkedList<T, T::Target> {
346+
pub(crate) fn for_each<F>(&mut self, f: F)
347+
where
348+
F: FnMut(&T::Handle),
349+
{
350+
self.list.for_each(f)
351+
}
352+
}
353+
345354
impl<T: Link> LinkedList<T, T::Target> {
346355
pub(crate) fn for_each<F>(&mut self, mut f: F)
347356
where

0 commit comments

Comments
 (0)