remove from sender

This commit is contained in:
Bronson 2024-12-14 14:14:59 +10:30 committed by Ulf Lilleengen
parent 9f451c7f41
commit c65b6db318

View File

@ -72,17 +72,6 @@ where
self.channel.poll_ready_to_send(cx)
}
/// Removes the elements from the channel that satisfy the predicate.
///
/// See [`PriorityChannel::remove_if()`]
pub fn remove_if<F>(&self, predicate: F)
where
F: Fn(&T) -> bool,
T: Clone,
{
self.channel.remove_if(predicate)
}
/// Returns the maximum number of elements the channel can hold.
///
/// See [`PriorityChannel::capacity()`]