Method: EventMachine.error_handler
- Defined in:
- lib/eventmachine.rb
.error_handler(cb = nil, &blk) ⇒ Object
Catch-all for errors raised during event loop callbacks.
1364 1365 1366 1367 1368 1369 1370 |
# File 'lib/eventmachine.rb', line 1364 def self.error_handler cb = nil, &blk if cb or blk @error_handler = cb || blk elsif instance_variable_defined? :@error_handler remove_instance_variable :@error_handler end end |