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.



28
29
30
# File 'lib/async/wrapper.rb', line 28

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

Instance Attribute Details

#backtraceObject (readonly)

Returns the value of attribute backtrace.



32
33
34
# File 'lib/async/wrapper.rb', line 32

def backtrace
  @backtrace
end

Instance Method Details

#causeObject



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

def cause
	nil
end

#messageObject



38
39
40
# File 'lib/async/wrapper.rb', line 38

def message
	"Cancelled"
end