class Exit
Used to propagate the exit status of a child process invoked by Async::Container::Thread::Instance#exec
.
Definitions
def initialize(status)
Initialize the exit status.
Signature
-
parameter
status
::Process::Status
The process exit status.
Implementation
def initialize(status)
@status = status
end
attr :status
The process exit status.
Signature
-
attribute
::Process::Status
def error
The process exit status if it was an error.
Signature
-
returns
::Process::Status | Nil
Implementation
def error
unless status.success?
status
end
end