README.md in random-port-0.1.0 vs README.md in random-port-0.2.0
- old
+ new
@@ -36,9 +36,17 @@
pool = RandomPort::Pool.new
port = pool.acquire
pool.release(port)
```
+You can also use a pre-defined `Pool::SINGLETON` singleton:
+
+```ruby
+RandomPort::Pool::SINGLETON.acquire do |port|
+ # Use it here...
+end
+```
+
The pool is thread-safe.
# License
(The MIT License)