Ruhrpottpatriot / GW2.NET

A user friendly wrapper around the official GW2 API
GNU General Public License v2.0
17 stars 17 forks source link

Use the 'async' and 'await' keywords #15

Closed sliekens closed 8 years ago

sliekens commented 8 years ago

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.