Skip to content

Commit 0c05614

Browse files
committed
Clarify poll_message docs
Closes #975
1 parent 8ab8f1a commit 0c05614

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tokio-postgres/src/connection.rs

+3
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,9 @@ where
302302
///
303303
/// The server can send notices as well as notifications asynchronously to the client. Applications that wish to
304304
/// examine those messages should use this method to drive the connection rather than its `Future` implementation.
305+
///
306+
/// Return values of `None` or `Some(Err(_))` are "terminal"; callers should not invoke this method again after
307+
/// receiving one of those values.
305308
pub fn poll_message(
306309
&mut self,
307310
cx: &mut Context<'_>,

0 commit comments

Comments
 (0)