Method: ZK::Threadpool#on_exception
- Defined in:
- lib/zk/threadpool.rb
#on_exception(&blk) ⇒ Object
Note:
if your exception callback block itself raises an exception, I will make fun of you.
register a block to be called back with unhandled exceptions that occur in the threadpool.
156 157 158 159 160 |
# File 'lib/zk/threadpool.rb', line 156 def on_exception(&blk) @mutex.synchronize do @error_callbacks << blk end end |