Method: ThreadPool#process
- Defined in:
- lib/tpkg/thread_pool.rb
#process(block = nil, &blk) ⇒ Object
101 102 103 104 105 |
# File 'lib/tpkg/thread_pool.rb', line 101 def process(block=nil,&blk) block = blk if block_given? worker = get_worker worker.set_block(block) end |