现在UI是安全的,代码也得到简化,因为任务分解成了工作线程内完成的部分和UI线程内完成的部分。
Now the UI is safe and the code is simpler, because it separates the work into the part that should be done on a worker thread and the part that should be done on the UI thread.
如果这两个回答都是“否”,那么代码将适于使用定时器分解工作。
If the answer to both of these questions is "no," then the code is a good candidate for using timers to split up the work.
应用推荐