Exception: AsyncFutures::DeadlockError

Inherits:
Error
  • Object
show all
Defined in:
lib/async_futures/error.rb

Overview

Error for Future errors related to deadlocks.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#futureObject (readonly)

Returns the value of attribute future.



31
32
33
# File 'lib/async_futures/error.rb', line 31

def future
  @future
end