"is parallel.foreach in concurrentbag<t> thread safe" Code Answer

3

that looks fine to me. the way you're using it is thread-safe.

if you could return an ienumerable<xyz>, it could be made more efficient by not copying to a list<t> when you're done.

By Silveri on April 22 2022

Answers related to “is parallel.foreach in concurrentbag<t> thread safe”

Only authorized users can answer the Search term. Please sign in first, or register a free account.