Class: Async::Wrapper::Cancelled::From

Inherits:
Object
  • Object
show all
Defined in:
lib/async/wrapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFrom

Returns a new instance of From.



30
31
32
# File 'lib/async/wrapper.rb', line 30

def initialize
	@backtrace = caller[5..-1]
end

Instance Attribute Details

#backtraceObject (readonly)

Returns the value of attribute backtrace.



34
35
36
# File 'lib/async/wrapper.rb', line 34

def backtrace
  @backtrace
end

Instance Method Details

#causeObject



36
37
38
# File 'lib/async/wrapper.rb', line 36

def cause
	nil
end

#messageObject



40
41
42
# File 'lib/async/wrapper.rb', line 40

def message
	"Cancelled"
end