經安全檢測,此網站為安全網站,請放心前往原始網址!

java Timer定時器停止的問題_知道

提問者採納: 保存每個TimerTask的引用,然後在需要停止時調用timerTask.cancel();

zhidao.baidu.com

網址安全性掃描由 google 提供