I try to make to set up
public Datas getData()
{
Node node;
if (Process.TryDequeue(out node))
return node.getdata();
else if (downloads.tryDequeue(out node))
return node.getdata();
else
return null;
}
public void GetNextItemToADD()
{
ConcurrentQueue<Node>.GetNextItemToProcess();
}
I think I am wrong.. I try to find example for GetNextItem. I want to know. Thanks