Skip to content

Commit 2a584a9

Browse files
committed
Add remark about eventual consistency to Status struct
1 parent 401a0ff commit 2a584a9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ pub mod unmanaged;
3232
pub use deadpool_runtime::{Runtime, SpawnBlockingError};
3333

3434
/// The current pool status.
35+
///
36+
/// **The status returned by the pool is not guaranteed to be consistent!**
37+
///
38+
/// While this features provides [eventual consistency][1] the numbers will be
39+
/// off when accessing the status of a pool under heavy load. These numbers
40+
/// are meant for an overall insight.
41+
///
42+
/// [1]: (https://en.wikipedia.org/wiki/Eventual_consistency)
3543
#[derive(Clone, Copy, Debug)]
3644
pub struct Status {
3745
/// The maximum size of the pool.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy