Method: Thread::Pool#idle_trim!

Defined in:
lib/thread/pool.rb

#idle_trim!(timeout) ⇒ Object

Enable idle trimming. Unneeded threads will be deleted after the given number of seconds of inactivity. The minimum number of threads is respeced.



167
168
169
# File 'lib/thread/pool.rb', line 167

def idle_trim!(timeout)
	@idle_trim = timeout
end