Returning null from Task-returning methods in C#
Introduction
Take a look at the following code and guess what happens when the Main method gets invoked:
public class Program
{
public static async Task Main()
{
var result = await AsyncFoo();
result = await NonAsyncFoo();
...
zachsnoek.hashnode.dev5 min read