Our great sponsors
-
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.
Maybe something like https://github.com/Fody/ConfigureAwait might help
Install a library like LanguageExt that gives you Monadic behaviour of tasks through Linq. Then your code becomes:
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, 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.)