Skip to content

Commit

Permalink
tokio: add CountedLinkedList::for_each
Browse files Browse the repository at this point in the history
  • Loading branch information
jswrenn committed Apr 27, 2023
1 parent 660eac7 commit 0f1fba5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tokio/src/util/linked_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0f1fba5

Please sign in to comment.