Class: Heartcheck::Executors::Threaded
- Defined in:
- lib/heartcheck/executors/threaded.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#dispatch(checkers) ⇒ Object
4 5 6 7 8 |
# File 'lib/heartcheck/executors/threaded.rb', line 4 def dispatch(checkers) checkers.collect do |checker| Concurrent::Future.execute { track_and_check(checker) } end.collect { |future| future.value } end |