mirror of
https://github.com/mperham/connection_pool
synced 2023-03-27 23:22:21 -04:00
Mention new timeout-error class in README (#156)
This commit is contained in:
parent
c5aef74264
commit
7074b31719
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ end
|
|||
|
||||
If all the objects in the connection pool are in use, `with` will block
|
||||
until one becomes available. If no object is available within `:timeout` seconds,
|
||||
`with` will raise a `Timeout::Error`.
|
||||
`with` will raise a `ConnectionPool::TimeoutError` (a subclass of `Timeout::Error`).
|
||||
|
||||
You can also use `ConnectionPool#then` to support _both_ a
|
||||
connection pool and a raw client (requires Ruby 2.5+).
|
||||
|
|
Loading…
Add table
Reference in a new issue