package
Version:
v0.1.3
Opens a new window with list of versions in this module.
Published: Aug 5, 2020
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package timer 系统时间
Package timer 定时器实现
Manager 定时器管理器
KillRegister 关闭所有当前管理器中的定时器
RegTimer limitTimes 限制了这个定时任务重复执行的次数,如果为 0 ,那么将不限制
其执行的次数。
如果 engross 为 true,那么这个 timer 的执行将独占一个协程
如果一个定时操作很耗时,你应该将它作为一个单独的协程去处理,但是这样你可能
要考虑并行执行带来的问题
Timer 定时器
func (tr *Timer) KillTimer()
KillTimer 关闭定时器
Source Files
¶
Click to show internal directories.
Click to hide internal directories.