C#C
C#4y ago
Omar

any benefit to async?

What's the benefit of async code? I see lots of examples that await on all the async calls. A prominent example at hand is the XmlReader example here: https://learn.microsoft.com/en-us/dotnet/api/system.xml.xmlreader?redirectedfrom=MSDN&view=net-6.0

Since every call to ReadAsyc() is going to block on await, then what's the point of using async reads?
Represents a reader that provides fast, noncached, forward-only access to XML data.
Was this page helpful?