by Bieberfan2003 · 4y ago · 0 comments
In C#, you can't use the "await" keyword, but you can use the result of a Task<T> in a non-async function with ".Result" or ".GetAwaiter().GetResult()". https://stackoverflow.com/a/47648318/5107208
I don't know if it extends to other language implementations, but C# does not seem to have a reliable sync-over-async story.
https://blog.stephencleary.com/2012/07/dont-block-on-async-c...
https://devblogs.microsoft.com/pfxteam/await-and-ui-and-dead...