79575540

Date: 2025-04-15 15:33:01
Score: 0.5
Natty:
Report link

The issue was that I wasn’t await-ing the async method in Main. Since DoSomethingAsync() returns a Task, and I didn’t await it, the program just moved on and printed "Done" without waiting for the async part to finish.

Here’s the fixed version:

static async Task Main(string[] args)
{
    await DoSomethingAsync();
    Console.WriteLine("Done");
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: raity vojdani