In a "producer consumer" scenario please forget ConcurrentQueue... please use BlockingCollection. Your CPU will thank you ;-)
https://learn.microsoft.com/en-us/dotnet/standard/collections/thread-safe/blockingcollection-overview
In a "producer consumer" scenario please forget ConcurrentQueue... please use BlockingCollection. Your CPU will thank you ;-)
https://learn.microsoft.com/en-us/dotnet/standard/collections/thread-safe/blockingcollection-overview
@DotNetGuy these older things don’t seem to be compatible with the task / async await world, and are not yet updated. I think we are supposed to use channels.
https://learn.microsoft.com/en-us/dotnet/core/extensions/channels