Hi I'm Xamarin Developer
I have some Question about using Async Programming
When I Call Webservice, I Usually use async / await.
But In case, It only uses One Thread(UI) so It causes some Problem when UI Change.
For example, Flow the code before getting value and sometimes hang the UI
I Read some Documents or Blogs about Async Programming. That announces that you can solve the problem When using Task.RUN
But it is so hard to know my programming level.....
here is some Example, so could you explain What is different?
notificationVos = await Task.Run(() => wSSmartConsoleCommon.getScMessage<NotificationVo>());
notificationVos = Task.Run(() => wSSmartConsoleCommon.getScMessage<NotificationVo>());
notificationVos = await wSSmartConsoleCommon.getScMessage<NotificationVo>());
notificationVos = await Task.Run(async() => await wSSmartConsoleCommon.getScMessage<NotificationVo>());