/// <summary> /// Removes every node from the queue. /// O(n) /// </summary> public void Clear() { lock (_queue) { _queue.Clear(); } }
/// <summary> /// Removes every node from the queue. /// O(n) /// </summary> public void Clear() { lock (_queue) { _queue.Clear(); _itemToNodesCache.Clear(); _nullNodesCache.Clear(); } }