Class: Mutest::Parallel::Master Private
- Inherits:
-
Object
- Object
- Mutest::Parallel::Master
- 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
-
.call(config) ⇒ Actor::Sender
private
Run master.
Instance Method Summary collapse
-
#initialize ⇒ undefined
constructor
private
Initialize object.
Constructor Details
#initialize ⇒ undefined
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
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 |