Skipped 675 frames! The application may be doing too much work on its main thread. How to make app run process in background without freezing the UI?

前端 未结 1 503
没有蜡笔的小新
没有蜡笔的小新 2021-01-26 04:36

I have an news aggregator and in debug i have the following: Skipped 675 frames! The application may be doing too much work on its main thread. I am loading only from 12 sites.

1条回答
  •  说谎
    说谎 (楼主)
    2021-01-26 05:00

    Try this. It should put the function in another thread

    await Task.Run(async () =>
                        {
                            //function
                        });
    

    0 讨论(0)
提交回复
热议问题