Class: Mutest::Parallel::Master Private

Inherits:
Object
  • Object
show all
Defined in:
lib/mutest/parallel/master.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Master parallel worker

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeundefined

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Initialize object



23
24
25
26
27
28
29
30
# File 'lib/mutest/parallel/master.rb', line 23

def initialize(*)
  super

  @stop        = false
  @workers     = 0
  @active_jobs = Set.new
  @index       = 0
end

Class Method Details

.call(config) ⇒ Actor::Sender

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Run master

Parameters:

Returns:



14
15
16
17
18
# File 'lib/mutest/parallel/master.rb', line 14

def self.call(config)
  config.env.spawn do |mailbox|
    new(config, mailbox).__send__(:run)
  end
end