【发布时间】:2014-08-05 15:20:05
【问题描述】:
对于threading.Timer对象,调用start方法后有没有办法更新定时器时间?
例如
timer = threading.Timer(5, function)
timer.start()
#after calling start method, i want to extend the timer time before expired.
我浏览了threading.Timer的文档,没有办法。
所以我必须调用取消方法然后再次调用启动方法吗?
【问题讨论】:
标签: python multithreading timer