Skip to content

Return types of async methods

Context: Async methods can return Task, Task<T>, ValueTask, ValueTask<T>, or void (the last one only for event handlers). This section covers the appropriate return types.