Note notification pickup caveat for nonblocking iterator
This commit is contained in:
parent
01153f784a
commit
049e37bf26
@ -42,7 +42,8 @@ impl<'conn> Notifications<'conn> {
|
|||||||
/// # Note
|
/// # Note
|
||||||
///
|
///
|
||||||
/// This iterator may start returning `Some` after previously returning
|
/// This iterator may start returning `Some` after previously returning
|
||||||
/// `None` if more notifications are received.
|
/// `None` if more notifications are received. However, those notifications
|
||||||
|
/// will not be registered until the connection is used in some way.
|
||||||
pub fn iter<'a>(&'a self) -> Iter<'a> {
|
pub fn iter<'a>(&'a self) -> Iter<'a> {
|
||||||
Iter {
|
Iter {
|
||||||
conn: self.conn,
|
conn: self.conn,
|
||||||
|
Loading…
Reference in New Issue
Block a user