Class: Mutant::Parallel::Source

Inherits:
Object
  • Object
show all
Includes:
AbstractType
Defined in:
lib/mutant/parallel/source.rb

Overview

Job source for parallel execution

Defined Under Namespace

Classes: Array

Constant Summary collapse

NoJobError =
Class.new(RuntimeError)

Instance Method Summary collapse

Instance Method Details

#nextObject

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.

Return next job

Returns:

  • (Object)

Raises:


18
# File 'lib/mutant/parallel/source.rb', line 18

abstract_method :next

#next?Boolean

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.

Test if next job is available

Returns:

  • (Boolean)

26
# File 'lib/mutant/parallel/source.rb', line 26

abstract_method :next?