aboutsummaryrefslogtreecommitdiff
path: root/embassy-sync/src/priority_channel.rs
diff options
context:
space:
mode:
authorBronson <[email protected]>2024-12-14 14:14:59 +1030
committerUlf Lilleengen <[email protected]>2025-01-20 08:51:59 +0100
commitc65b6db318da7ecbe888a0a66b85d9ffb28106f0 (patch)
tree14761eb8a775073da7dd8dda6fc7c7da7dc5b61a /embassy-sync/src/priority_channel.rs
parent9f451c7f411d742d8e7c1c3a00c0fb864f14d46c (diff)
remove from sender
Diffstat (limited to 'embassy-sync/src/priority_channel.rs')
-rw-r--r--embassy-sync/src/priority_channel.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/embassy-sync/src/priority_channel.rs b/embassy-sync/src/priority_channel.rs
index a4eda7fbc..d466a22ff 100644
--- a/embassy-sync/src/priority_channel.rs
+++ b/embassy-sync/src/priority_channel.rs
@@ -72,17 +72,6 @@ where
72 self.channel.poll_ready_to_send(cx) 72 self.channel.poll_ready_to_send(cx)
73 } 73 }
74 74
75 /// Removes the elements from the channel that satisfy the predicate.
76 ///
77 /// See [`PriorityChannel::remove_if()`]
78 pub fn remove_if<F>(&self, predicate: F)
79 where
80 F: Fn(&T) -> bool,
81 T: Clone,
82 {
83 self.channel.remove_if(predicate)
84 }
85
86 /// Returns the maximum number of elements the channel can hold. 75 /// Returns the maximum number of elements the channel can hold.
87 /// 76 ///
88 /// See [`PriorityChannel::capacity()`] 77 /// See [`PriorityChannel::capacity()`]