You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is nothing wrong with this library and it works as expected without creating duplicates. Issue here is your poor implementation. Why would you create new instance of Generator for every iteration? With example you provided result is as expected.
As @jhabjan said, you must not create new instances of Generator with the same Instance ID (in your case 1). If you create multiple generators, use unique instance id's.
var blockingCollection = new BlockingCollection();
List tasks = new List();
for (int i = 0; i < 100; i++)
{
var task = Task.Run(() =>
{
The text was updated successfully, but these errors were encountered: