Method: Thread::Pool#shutdown!

Defined in:
lib/thread/pool.rb

#shutdown!Object

Shut down the pool instantly without finishing to execute tasks.



252
253
254
255
256
257
258
259
260
261
# File 'lib/thread/pool.rb', line 252

def shutdown!
	@mutex.synchronize {
		@shutdown = :now
		@cond.broadcast
	}

	wake_up_timeout

	self
end