Method: OpenHAB::RSpec::Mocks::SynchronousExecutor#execute
- Defined in:
- lib/openhab/rspec/mocks/synchronous_executor.rb
#execute(runnable) ⇒ Object
36 37 38 39 40 |
# File 'lib/openhab/rspec/mocks/synchronous_executor.rb', line 36 def execute(runnable) return super unless Thread.current == main_thread runnable.run end |