class Async::Container::Thread::Status
A pseudo exit-status wrapper.
Public Class Methods
new(error = nil)
click to toggle source
Initialise the status. @parameter error [::Process::Status] The exit status of the child thread.
# File lib/async/container/thread.rb, line 187 def initialize(error = nil) @error = error end
Public Instance Methods
success?()
click to toggle source
Whether the status represents a successful outcome. @returns [Boolean]
# File lib/async/container/thread.rb, line 193 def success? @error.nil? end
to_s()
click to toggle source
A human readable representation of the status.
# File lib/async/container/thread.rb, line 198 def to_s "\#<#{self.class} #{success? ? "success" : "failure"}>" end