Method: Thread::Pool#resize
- Defined in:
- lib/thread/pool.rb
#resize(min, max = nil) ⇒ Object
Resize the pool with the passed arguments.
177 178 179 180 181 182 |
# File 'lib/thread/pool.rb', line 177 def resize (min, max = nil) @min = min @max = max || min trim! end |