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.

Next job

Returns:

  • (Object)

Raises:



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

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)


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

abstract_method :next?