Method: Tpool::Block#kill
- Defined in:
- lib/tpool_block.rb
#kill ⇒ Object
Kills the current running job.
81 82 83 84 |
# File 'lib/tpool_block.rb', line 81 def kill Thread.pass while !self.done? and !self.running? @thread_running.raise Exception, "Should kill itself." if !self.done? and self.running? end |