Class: RSpec::OpenHAB::Core::Mocks::CallbacksMap

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/openhab/core/mocks/synchronous_executor.rb

Instance Method Summary collapse

Instance Method Details

#put(_rule_uid, trigger_handler) ⇒ Object



10
11
12
13
14
# File 'lib/rspec/openhab/core/mocks/synchronous_executor.rb', line 10

def put(_rule_uid, trigger_handler)
  trigger_handler.executor.shutdown_now
  trigger_handler.executor = SynchronousExecutor.instance
  super
end