Method: Doctrine::Runner#initialize

Defined in:
lib/doctrine/runner.rb

#initialize(reporter:) ⇒ Runner

Returns a new instance of Runner.



11
12
13
14
15
16
17
18
19
20
# File 'lib/doctrine/runner.rb', line 11

def initialize(reporter:)
  @reporter = reporter
  @condition = new_cond
  @queue = Queue.new
  @worker = Worker.new(queue: @queue, runner: self)
  @thread = Thread.new { @worker.run }
  @enqueued = []
  @working = []
  @finished = []
end