module Cramp::FiberPool::UsesFiberPool
Public Instance Methods
callback_wrapper() { || ... }
click to toggle source
Overrides wrapper methods to run callbacks in a fiber
# File lib/cramp/fiber_pool.rb, line 24 def callback_wrapper self.fiber_pool.spawn do begin yield rescue StandardError, LoadError, SyntaxError => exception handle_exception(exception) end end end
timer_method_wrapper(method)
click to toggle source
# File lib/cramp/fiber_pool.rb, line 34 def timer_method_wrapper(method) self.fiber_pool.spawn do begin send(method) rescue StandardError, LoadError, SyntaxError => exception handle_exception(exception) end end end