多进程工作者的全局定时器 替代单进程工作模式的erlangtimer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

404 B

gTimer

多工作进程的全局定时器

Build

$ rebar3 compile

Useage

startWork/1     开启指定数量的定时器工作者
setTimer/2      随机一个定时器工作者然后设置定时器    
setTimer/3      指定选择定时器工作者策略然后设置定时器  
getTimer/1      获取定时器的信息
delTimer/1      删除一个定时器