Skip to content

Commit 0ca084d

Browse files
committed
Add ordering note
1 parent b3fdf16 commit 0ca084d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tokio-postgres/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@
4949
//! tokio::run(fut);
5050
//! ```
5151
//!
52+
//! # Behavior
53+
//!
54+
//! Calling a method like `Client::query` on its own does nothing. The associated request is not sent to the database
55+
//! until the future returned by the method is first polled. Requests are executed in the order that they are first
56+
//! polled, not in the order that their futures are created.
57+
//!
5258
//! # Pipelining
5359
//!
5460
//! The client supports *pipelined* requests. Pipelining can improve performance in use cases in which multiple,

0 commit comments

Comments
 (0)