Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Document what will happen if the pool is empty. #23

Merged
merged 1 commit into from

2 participants

@dvrensk

Thanks for the presentation!

@djanowski djanowski merged commit e253e7c into mperham:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 2, 2012
  1. @dvrensk
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.md
View
4 README.md
@@ -38,6 +38,10 @@ Then use the pool in your application:
end
```
+If all the objects in the connection pool are in use, `with_connection` will block
+until one becomes available. If no object is available within `:timeout` seconds,
+`with_connection` will raise a `Timeout::Error`.
+
You can use `ConnectionPool::Wrapper` to wrap a single global connection, making
it easier to port your connection code over time:
Something went wrong with that request. Please try again.