class method self.new

Ruby on Rails edge

Since edge

Signature

self.new(worker_count:)

No documentation comment.

Parameters

worker_count keyreq
Source
# File activesupport/lib/active_support/testing/parallelization/test_distributor.rb, line 78
        def initialize(worker_count:)
          @worker_count = worker_count
          @queues = Array.new(@worker_count) { Queue.new }
          @next_worker = 0
          @mutex = Mutex.new
          @cv = ConditionVariable.new
          @closed = false
        end

Defined in activesupport/lib/active_support/testing/parallelization/test_distributor.rb line 78 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Testing::Parallelization::RoundRobinDistributor

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close