Commit c282f34c authored by Sebastian Dröge's avatar Sebastian Dröge 🍵 Committed by Sebastian Dröge

bus: Fix naming for filtered pop functions

parent 1a65c674
......@@ -198,7 +198,11 @@ impl Bus {
.filter(move |msg| msg_types.contains(&msg.get_type()))
}
pub fn pop_filtered(&self, timeout: ::ClockTime, msg_types: &[MessageType]) -> Option<Message> {
pub fn timed_pop_filtered(
&self,
timeout: ::ClockTime,
msg_types: &[MessageType],
) -> Option<Message> {
loop {
let msg = self.timed_pop(timeout)?;
if msg_types.contains(&msg.get_type()) {
......@@ -207,7 +211,7 @@ impl Bus {
}
}
pub fn timed_pop_filtered(&self, msg_types: &[MessageType]) -> Option<Message> {
pub fn pop_filtered(&self, msg_types: &[MessageType]) -> Option<Message> {
loop {
let msg = self.pop()?;
if msg_types.contains(&msg.get_type()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment