Open hung-doan opened 5 years ago
await Task => won't lock calling thread ? Task.Wait will lock calling thread ?
await async won't create new thread
await vs wait will cause deadlock ?
In ASP .NET will cause deadlock (not in .NET core)
Task.Factory.StartNew(async() => { await Task.Delay(1000); }).Wait();
await Task => won't lock calling thread ? Task.Wait will lock calling thread ?
await async won't create new thread
await vs wait will cause deadlock ?