Method: ZK::Threadpool#start!

Defined in:
lib/zk/threadpool.rb

#start!Object

starts the threadpool if not already running



88
89
90
91
92
93
94
95
96
# File 'lib/zk/threadpool.rb', line 88

def start!
  @mutex.synchronize do
    return false if @state == :running
    @state = :running
    spawn_threadpool
  end

  true
end