| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Adds an optional `on_acquire` callback to `Pool` / `create_pool`, mirroring the existing setup/init/reset style. The callback is invoked synchronously with an `AcquireEvent(wait_seconds, size, idle, max_size)` after every successful `Pool.acquire` dispatch. Lets applications detect pool saturation (long wait, idle == 0) without subclassing the pool or wrapping every callsite. Callback exceptions are logged and suppressed. No behavior change when unused.
Caller branches in `_acquire` so `_fire_on_acquire` does not need a redundant None check.
| Back | FazBrowse Home | New Git URL |
Adds an optional on_acquire callback to Pool / create_pool, mirroring the existing setup/init/reset style. The callback is invoked synchronously with an AcquireEvent(wait_seconds, size, idle, max_size) after every successful Pool.acquire dispatch. Lets applications detect pool saturation (long wait, idle == 0) without subclassing the pool or wrapping every callsite. Callback exceptions are logged and suppressed. No behavior change when unused.