© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
113 replies
Omar

any benefit to async?

What's the benefit of async code? I see lots of examples that
await
await
on all the async calls. A prominent example at hand is the
XmlReader
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?
XmlReader Class (System.Xml)
Represents a reader that provides fast, noncached, forward-only access to XML data.
XmlReader Class (System.Xml)
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

✅ Is there any benefit to separating your service models and repository entities?
C#CC# / help
8mo ago
Is there any benefit to write a Property with a private variable ?
C#CC# / help
4y ago
❔ Benefit of ref structs
C#CC# / help
3y ago
Canvas: Any benefit to "reusing" shapes vs. Canvas.Clear() and creating new shapes every render?
C#CC# / help
2y ago