Skip to content

Commit

Permalink
Merge pull request #463 from dancerj/comment-return
Browse files Browse the repository at this point in the history
Add a comment what return value is.
  • Loading branch information
diwic committed Apr 5, 2024
2 parents 35f7ad3 + a8ea8d0 commit 972b79b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dbus/src/blocking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ impl $c {
///
/// For `SyncConnection`: It is also a logic error to call this method from one thread, while
/// calling this or other methods from other threads. This can lead to messages being lost.
///
/// Returns true when there was a message to process, and false when time out reached.
pub fn process(&self, timeout: Duration) -> Result<bool, Error> {
if let Some(msg) = self.channel.blocking_pop_message(timeout)? {
if self.all_signal_matches.load(Ordering::Acquire) && msg.msg_type() == MessageType::Signal {
Expand Down

0 comments on commit 972b79b

Please sign in to comment.