3 ms·
Tasks are pretty awesome and just about as convenient as Go-routines. Now if we could just get typed channels in .Net >:]
by Rapzid 12y ago
Tasks are pretty awesome and just about as convenient as Go-routines. Now if we could just get typed channels in .Net >:]
- tracker1 12y agoI don't think it would be very hard at all to create a generic CSP system with C# (or F# for that matter). I've built similar systems using WCF.
- Paradigma11 12y agoDoesn't rx fill that role?
- Matthias247 12y agoWith Rx you can do similar things but the semantics are different. When you use an Rx Stream you will get the data pushed from a different thread. With Go-like channels you pull the data from the other thread (or the channel).
- Matthias247 12y agoHow 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...