Exception: AsyncAware::ThreadTimedOut
- Inherits:
-
StandardError
- Object
- StandardError
- AsyncAware::ThreadTimedOut
- Defined in:
- app/models/async_aware.rb
Instance Attribute Summary collapse
-
#thread ⇒ Object
readonly
Returns the value of attribute thread.
Instance Method Summary collapse
-
#initialize(thread, timeout) ⇒ ThreadTimedOut
constructor
A new instance of ThreadTimedOut.
- #to_s ⇒ Object
Constructor Details
#initialize(thread, timeout) ⇒ ThreadTimedOut
Returns a new instance of ThreadTimedOut.
53 54 55 |
# File 'app/models/async_aware.rb', line 53 def initialize(thread, timeout) @thread, @timeout = thread, timeout end |
Instance Attribute Details
#thread ⇒ Object (readonly)
Returns the value of attribute thread.
52 53 54 |
# File 'app/models/async_aware.rb', line 52 def thread @thread end |
Instance Method Details
#to_s ⇒ Object
56 57 58 |
# File 'app/models/async_aware.rb', line 56 def to_s "The thread #{thread.inspect} did not complete within #{@timeout} seconds." end |