Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Do those channels support async? Since C# is built around async/await for scaling to large numbers of connections / tasks, they wouldn't be very useful if they didn't support async, but I'm not familiar enough with modern C# to figure out if they do or not.


Yes. It's a library that is fully async. We process millions of records/second using these.


Do you happen to have any public information on this approach, it sounds interesting but I'm not up on the C# world like I used to be.


This is the best overview article so far: https://ndportmann.com/system-threading-channels/


Thank you.


Yeah you have a triple for different use cases; the sync call is `TryRead` so its non-blocking; `ReadAsync` for async reading and `WaitToReadAsync` to wait for data to be available without reading (likely then followed by the non-blocking `TryRead` in usage)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: