Decompilation - async await problem hunt
The story Project that I love (because it's my baby) and work with, is written in very asynchronous manner. It's great in most of the times - e.g. no blocking of user interface, faster background loading. But sometimes problems occurs... We had one problem, strange things where happening. Whoever tested the case got different 'special' effects. I won't describe details but it looked like not all threads/tasks where synchronized on UI thread and refreshed data didn't appear before it was used again. What could be the reason? Nice code and design, we are using generic method invoker to call other methods - it's a wrapper for all calls. It's of course asynchronous and calls asynchronous methods by lambda expression, something like this: return await CallSleepyComplicatedAwaitingWithFunc(() => CallSleepyComplicated()); Internet never dies When something is posted once on internet it is there forever (or at leas a very long time). But wor...