Class: Navigable::Executor
- Inherits:
-
Object
- Object
- Navigable::Executor
- Defined in:
- lib/navigable/executor.rb
Class Method Summary collapse
Class Method Details
.execute(&block) ⇒ Object
5 6 7 |
# File 'lib/navigable/executor.rb', line 5 def self.execute(&block) ENV['CONCURRENT_OBSERVERS'] ? Concurrent.global_io_executor.post(&block) : block.call end |