How do you get used to async/await noise in your code?

This page summarizes the projects mentioned and recommended in the original post on /r/csharp

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • ConfigureAwait

    Configure async code's ConfigureAwait at a global level

  • Maybe something like https://github.com/Fody/ConfigureAwait might help

  • language-ext

    C# functional language extensions - a base class library for functional programming

  • Install a library like LanguageExt that gives you Monadic behaviour of tasks through Linq. Then your code becomes:

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • AspNetIdentity

    ASP.NET Identity for ASP.NET 4.x applications

  • I usually just write an Async method and then a synchronous one that uses something like this to call the async method. So I'd have a GetFirst and GetFirstAsync. Same with GetSecond.

  • ValueTaskSupplement

    Append supplemental methods(WhenAny, WhenAll, Lazy) to ValueTask.

  • ValueTaskSupplement, an appropraite Task adaptation and or normal Task.WhenAll() can make things a -little- easier, potentially. (Main drawback, is potentially unwrapping AggregateExceptions in logging/etc.)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts