Exception: Async::Container::Thread::Exit
- Inherits:
-
Exception
- Object
- Exception
- Async::Container::Thread::Exit
- Defined in:
- lib/async/container/thread.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
- #error ⇒ Object
-
#initialize(status) ⇒ Exit
constructor
A new instance of Exit.
Constructor Details
#initialize(status) ⇒ Exit
Returns a new instance of Exit.
30 31 32 |
# File 'lib/async/container/thread.rb', line 30 def initialize(status) @status = status end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
34 35 36 |
# File 'lib/async/container/thread.rb', line 34 def status @status end |
Instance Method Details
#error ⇒ Object
36 37 38 39 40 |
# File 'lib/async/container/thread.rb', line 36 def error unless status.success? status end end |