Exception: AsyncFutures::DeadlockError
- Defined in:
- lib/async_futures/error.rb
Overview
Error for Future errors related to deadlocks.
Instance Attribute Summary collapse
-
#future ⇒ Object
readonly
Returns the value of attribute future.
Instance Method Summary collapse
-
#initialize(future) ⇒ DeadlockError
constructor
A new instance of DeadlockError.
Constructor Details
#initialize(future) ⇒ DeadlockError
Returns a new instance of DeadlockError.
33 34 35 36 37 |
# File 'lib/async_futures/error.rb', line 33 def initialize(future) @future = future super("Future would deadlock: #{@future}") end |
Instance Attribute Details
#future ⇒ Object (readonly)
Returns the value of attribute future.
31 32 33 |
# File 'lib/async_futures/error.rb', line 31 def future @future end |