暂停时单次使用线程池计时器 [英] Single use Thread​Pool​Timer when suspended
本文介绍了暂停时单次使用线程池计时器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
我的应用程序有一次性线程池计时器。只是想确认它是否会在应用程序进入后台的时间超过计时器的延迟时自动取消。
< !p>由于<跨度> 跨度>&NBSP;&NBSP; 线程池计时器
解决方案
您好,
是因为当app进入暂停状态时,其内存将转为"冻结"状态。状态,直到用户恢复应用程序。
Hello,
My app has a single-use ThreadPoolTimer. Just want to confirm if it's cancelled automatically when the app goes to the background longer than the delay of the timer.
Thanks! ThreadPoolTimer
解决方案
Hello,
Yes because when app go to suspended state its memory go to "frozen" state until user resume the app.
这篇关于暂停时单次使用线程池计时器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文