Skip to content

Commit 049e37b

Browse files
committed
Note notification pickup caveat for nonblocking iterator
1 parent 01153f7 commit 049e37b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/notification.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ impl<'conn> Notifications<'conn> {
4242
/// # Note
4343
///
4444
/// This iterator may start returning `Some` after previously returning
45-
/// `None` if more notifications are received.
45+
/// `None` if more notifications are received. However, those notifications
46+
/// will not be registered until the connection is used in some way.
4647
pub fn iter<'a>(&'a self) -> Iter<'a> {
4748
Iter {
4849
conn: self.conn,

0 commit comments

Comments
 (0)