Sha256: 0976646498552ead86a731213641e2e10b7a63c859f91b74e1606e4acab59150

Contents?: true

Size: 293 Bytes

Versions: 13

Compression:

Stored size: 293 Bytes

Contents

module Heartcheck
  module Executors
    class Threaded < Heartcheck::Executors::Base
      def dispatch(checkers)
        checkers.collect do |checker|
          Concurrent::Future.execute { track_and_check(checker) }
        end.collect { |future| future.value }
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
heartcheck-2.0.0 lib/heartcheck/executors/threaded.rb
heartcheck-1.6.0 lib/heartcheck/executors/threaded.rb
heartcheck-1.5.1 lib/heartcheck/executors/threaded.rb
heartcheck-1.5.0 lib/heartcheck/executors/threaded.rb
heartcheck-1.4.0 lib/heartcheck/executors/threaded.rb
heartcheck-1.3.0 lib/heartcheck/executors/threaded.rb
heartcheck-1.2.2 lib/heartcheck/executors/threaded.rb
heartcheck-1.2.1 lib/heartcheck/executors/threaded.rb
heartcheck-1.2.0 lib/heartcheck/executors/threaded.rb
heartcheck-1.1.1 lib/heartcheck/executors/threaded.rb
heartcheck-1.1.0 lib/heartcheck/executors/threaded.rb
heartcheck-1.0.9 lib/heartcheck/executors/threaded.rb
heartcheck-1.0.8 lib/heartcheck/executors/threaded.rb