Closed suugbut closed 1 month ago
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
You really should not just call Result on Tasks as this will most certainly cause deadlocks. You can maybe try GetAsync("X").GetAwaiter().GetResult()
but who knows what that will do.
We do not start task or anything in our code, so it is most likely the Windows implementation that is being deadlocked as you try and force it to run on your thread while it is busy doing something.
Description
This issue has been fixed in Android: https://github.com/dotnet/maui/pull/17928, but still exists in Windows.
Steps to Reproduce
Replace the code behind of
MainPage
provided by Maui project's default template with the following code.Affected platforms
Windows
Did you find any workaround?