4 ms·
How about BlockingCollection<T>? If I understand it correctly you can even have select like sementics with BlockingCollection.TakeFromAny(...) Edit: Sorry, mes
by Matthias247 12y ago
How about BlockingCollection<T>?
If I understand it correctly you can even have select like sementics with BlockingCollection.TakeFromAny(...)
Edit: Sorry, messed it up a little bit. BlockingCollection will block your current thread for any other computation and does not allow to await on it.
But there seem to be alternatives:
http://stackoverflow.com/questions/21225361/is-there-anything-like-asynchronous-blockingcollectiont http://stackoverflow.com/questions/21225361/is-there-anythin...
http://blog.stephencleary.com/2012/12/async-producer-consumer-queue-3-more.html http://blog.stephencleary.com/2012/12/async-producer-consume...