Class: OpenHAB::DSL::Imports::SynchronousExecutor
- Inherits:
-
Object
- Object
- OpenHAB::DSL::Imports::SynchronousExecutor
- Includes:
- Singleton
- Defined in:
- lib/rspec/openhab/dsl/imports.rb
Instance Method Summary collapse
Instance Method Details
#execute(runnable) ⇒ Object
245 246 247 |
# File 'lib/rspec/openhab/dsl/imports.rb', line 245 def execute(runnable) runnable.run end |
#shutdown? ⇒ Boolean
251 252 253 |
# File 'lib/rspec/openhab/dsl/imports.rb', line 251 def shutdown? false end |
#shutdown_now ⇒ Object
249 |
# File 'lib/rspec/openhab/dsl/imports.rb', line 249 def shutdown_now; end |
#submit(runnable) ⇒ Object
239 240 241 242 243 |
# File 'lib/rspec/openhab/dsl/imports.rb', line 239 def submit(runnable) runnable.respond_to?(:run) ? runnable.run : runnable.call java.util.concurrent.CompletableFuture.completed_future(nil) end |