1
0
Fork 0
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:
isikyus 2021-10-14 15:34:11 +11:00 committed by GitHub
parent c5aef74264
commit 7074b31719
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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+).