How to remove a single, specific object from a ConcurrentBag?
The short answer: you can’t do it in an easy way. The ConcurrentBag keeps a thread local queue for each thread and it only looks at other threads’ queues once its own queue becomes empty. If you remove an item and put it back then the next item you remove may be the same item … Read more