4 ms·
GetAwaiter().GetResult() can result in deadlocks. The ideal solution is to split the code and continue the execution through an event/continuation/queue, etc..
by Kuinox 2y ago
GetAwaiter().GetResult() can result in deadlocks.
The ideal solution is to split the code and continue the execution through an event/continuation/queue, etc...
- pif 2y ago> The ideal solution is to split the code I'm sorry, it looks like you did not get the problem: you receive a Task, and you are in a sync environment, and you don't have control over these two constraints. How do you safely wait for the Task to complete?