Method: ASIR::ThreadPool::Work#run!
- Defined in:
- lib/asir/thread_pool.rb
#run! ⇒ Object
147 148 149 150 151 152 153 154 155 156 |
# File 'lib/asir/thread_pool.rb', line 147 def run! @thread = ::Thread.current thread_pool.work_starting! self @started = true @block.call @finished = true ensure @thread = nil thread_pool.work_stopping! self end |