Skip to content

Commit

Permalink
Clarify poll_message docs
Browse files Browse the repository at this point in the history
Closes #975
  • Loading branch information
sfackler committed Jan 2, 2023
1 parent 8ab8f1a commit 0c05614
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tokio-postgres/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,9 @@ where
///
/// The server can send notices as well as notifications asynchronously to the client. Applications that wish to
/// examine those messages should use this method to drive the connection rather than its `Future` implementation.
///
/// Return values of `None` or `Some(Err(_))` are "terminal"; callers should not invoke this method again after
/// receiving one of those values.
pub fn poll_message(
&mut self,
cx: &mut Context<'_>,
Expand Down

0 comments on commit 0c05614

Please sign in to comment.