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
225 226 227 |
# File 'lib/rspec/openhab/dsl/imports.rb', line 225 def execute(runnable) runnable.run end |
#shutdown? ⇒ Boolean
231 232 233 |
# File 'lib/rspec/openhab/dsl/imports.rb', line 231 def shutdown? false end |
#shutdown_now ⇒ Object
229 |
# File 'lib/rspec/openhab/dsl/imports.rb', line 229 def shutdown_now; end |
#submit(runnable) ⇒ Object
219 220 221 222 223 |
# File 'lib/rspec/openhab/dsl/imports.rb', line 219 def submit(runnable) runnable.run java.util.concurrent.CompletableFuture.completed_future(nil) end |