I have a code like this:
var t = new Thread(async () =>
{
await DoSomeWorkAsync();
});
t.Start();
t.Join();
..
public static async Task DoSomeWorkAsync()
{
var o = await GetSomethingAsync();
o.StartSomething();
..
}
I've noticed that the t.Join() returns automatically after the await. I'd like to understand why.
Thanks