Resolve errors and warnings that involve async, await and the Task-asynchronous protocol - C# reference (original) (raw)

This article covers the following compiler errors:

Await expression requirements

To use the await operator correctly, follow these rules. For more information, see Asynchronous programming with async and await.

Async method signature requirements

To declare async methods correctly, follow these signature requirements. For more information, see Async main return values.

Async practices

To write async code correctly and avoid common pitfalls, follow these best practices. For more information, see Asynchronous programming with async and await.