Method: Async::Node#description

Defined in:
lib/async/node.rb

#descriptionObject

A description of the node, including the annotation and object name.



160
161
162
163
164
165
166
167
168
169
170
# File 'lib/async/node.rb', line 160

def description
	@object_name ||= "#{self.class}:#{format '%#018x', object_id}#{@transient ? ' transient' : nil}"
	
	if annotation = self.annotation
		"#{@object_name} #{annotation}"
	elsif line = self.backtrace(0, 1)&.first
		"#{@object_name} #{line}"
	else
		@object_name
	end
end