lib/async/http/pool.rb in async-http-0.26.0 vs lib/async/http/pool.rb in async-http-0.27.0

- old
+ new

@@ -42,9 +42,15 @@ @limit = limit @constructor = block end + attr :available + + def empty? + @available.empty? + end + def acquire resource = wait_for_next_available return resource unless block_given?