Async::Container SourceAsyncContainerThreadStatus

class Status

A pseudo exit-status wrapper.

Definitions

def initialize(error = nil)

Initialise the status.

Signature

parameter error ::Process::Status

The exit status of the child thread.

Implementation

def initialize(error = nil)
	@error = error
end

def success?

Whether the status represents a successful outcome.

Signature

returns Boolean

Implementation

def success?
	@error.nil?
end

def to_s

A human readable representation of the status.

Implementation

def to_s
	"\#<#{self.class} #{success? ? "success" : "failure"}>"
end