Method: Async::List#stack

Defined in:
lib/async/list.rb

#stack(node, &block) ⇒ Object

Add the node, yield, and the remove the node.



87
88
89
90
91
92
# File 'lib/async/list.rb', line 87

def stack(node, &block)
	append(node)
	return yield(node)
ensure
	remove!(node)
end