FetchAsync().Result blocks on an async call, and every article about async in .NET says this deadlocks.
Read Program.cs first, then run it: dotnet run --project reps/04. It prints:
before
after: done
No deadlock, and no hang either.
FetchAsync().Result blocks on an async call, and every article about async in .NET says this deadlocks.
Read Program.cs first, then run it: dotnet run --project reps/04. It prints:
before
after: done
No deadlock, and no hang either.
FetchAsync does after its await.