package
Version:
v0.0.12
Opens a new window with list of versions in this module.
Published: Dec 19, 2021
License: Apache-2.0
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.
README
¶
通用计时器
时间表示为 int64 Unix 时间
用层级的方式处理任意长度的定时器消息
Documentation
¶
View Source
const (
TIMER_LEVEL = 20
QUEUE_MAX = 65536
)
------------------------------------------------
添加一个定时,timeout为到期的Unix时间
id 是调用者定义的编号, 事件发生时,会把id发送到ch
Source Files
¶
Click to show internal directories.
Click to hide internal directories.