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
233 234 235 |
# File 'lib/rspec/openhab/dsl/imports.rb', line 233 def execute(runnable) runnable.run end |
#shutdown? ⇒ Boolean
239 240 241 |
# File 'lib/rspec/openhab/dsl/imports.rb', line 239 def shutdown? false end |
#shutdown_now ⇒ Object
237 |
# File 'lib/rspec/openhab/dsl/imports.rb', line 237 def shutdown_now; end |
#submit(runnable) ⇒ Object
227 228 229 230 231 |
# File 'lib/rspec/openhab/dsl/imports.rb', line 227 def submit(runnable) runnable.respond_to?(:run) ? runnable.run : runnable.call java.util.concurrent.CompletableFuture.completed_future(nil) end |