class OctocatalogDiff::Util::Parallel::Result


This class represents the result from a parallel task. The status is set to true (success), false (error), or nil (task was killed before it could complete). The exception (for failure) and output object (for success) are readable attributes. The validity of the results, determined by executing the 'validate' method of the Task, is available to be set and fetched.


Attributes

args[R]
exception[RW]
output[R]
status[RW]

Public Class Methods

new(opts = {}) click to toggle source
# File lib/octocatalog-diff/util/parallel.rb, line 53
def initialize(opts = {})
  @status = opts[:status]
  @exception = opts[:exception]
  @output = opts[:output]
  @args = opts.fetch(:args, {})
end