3 ms·
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
by coder543 8y ago
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.
- manigandham 8y agoYes. It's a library that is fully async. We process millions of records/second using these.
- noir_lord 8y agoDo 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.
- manigandham 8y agoThis is the best overview article so far: https://ndportmann.com/system-threading-channels/ https://ndportmann.com/system-threading-channels/
- noir_lord 8y agoThank you.
- benaadams 8y agoYeah 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)