Method: Async::List#remove?

Defined in:
lib/async/list.rb

#remove?(node) ⇒ Boolean

Remove the node if it is in a list.

You should be careful to only remove nodes that are part of this list.

Returns:

  • (Boolean)

103
104
105
106
107
108
109
# File 'lib/async/list.rb', line 103

def remove?(node)
	if node.head
		return remove!(node)
	end
	
	return nil
end