Skip to main content
๐Ÿ› Bug HuntC# C# / .NET Hardโšก+35 XP

Deadlock Risk

This async code can deadlock in ASP.NET.

๐Ÿ› Find the bug
1public string GetData() {
2 return GetDataAsync().Result;
3}
๐Ÿ› The bug is on line 2

๐Ÿ”ง Select the correct fix: