A lot of code still uses the old .NET 4.0 style of programming with Task using Task.ContinueWith() instead of the newer await keyword. In a few files, the ContinueWith pattern is implemented poorly so that when a task is faulted, its Task.Exception is wrapped in two layers of AggregateException instead of just one.
A lot of code still uses the old .NET 4.0 style of programming with
Task
usingTask.ContinueWith()
instead of the newerawait
keyword. In a few files, theContinueWith
pattern is implemented poorly so that when a task is faulted, itsTask.Exception
is wrapped in two layers ofAggregateException
instead of just one.