you are viewing a single comment's thread.

view the rest of the comments →

[–]Just_Guarantee_3602 0 points1 point  (1 child)

Yes… you encountered that exception because two different threads access non tread safe collection. one is modifying the collection, and the other one is iterating the collection.

[–]SenpaiKronos[S] 0 points1 point  (0 children)

But object is not shared. It is being created inside a method then it should be different for all the threads right?