Sha256: fc2fe2f70b9afbca714ab6cc4c49d5cf2f5b66ef635cffa26f6bba07fcd80923

Contents?: true

Size: 383 Bytes

Versions: 15

Compression:

Stored size: 383 Bytes

Contents

# frozen_string_literal: true

module Waylon
  module RSpec
    # A TestWorker to run queued Skills
    class TestWorker
      # Instructs the worker to grab an item off the Queue and run it
      # @param queue [Queue] The queue that contains work to be done
      def self.handle(queue)
        skill, details = queue.pop
        skill.perform(details)
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
waylon-core-0.3.0 lib/waylon/rspec/test_worker.rb
waylon-core-0.2.6 lib/waylon/rspec/test_worker.rb
waylon-core-0.2.5 lib/waylon/rspec/test_worker.rb
waylon-core-0.2.4 lib/waylon/rspec/test_worker.rb
waylon-core-0.2.3 lib/waylon/rspec/test_worker.rb
waylon-core-0.2.2 lib/waylon/rspec/test_worker.rb
waylon-core-0.2.1 lib/waylon/rspec/test_worker.rb
waylon-core-0.2.0 lib/waylon/rspec/test_worker.rb
waylon-core-0.1.9 lib/waylon/rspec/test_worker.rb
waylon-core-0.1.8 lib/waylon/rspec/test_worker.rb
waylon-core-0.1.6 lib/waylon/rspec/test_worker.rb
waylon-core-0.1.5 lib/waylon/rspec/test_worker.rb
waylon-core-0.1.4 lib/waylon/rspec/test_worker.rb
waylon-core-0.1.3 lib/waylon/rspec/test_worker.rb
waylon-core-0.1.2 lib/waylon/rspec/test_worker.rb