golang版本的通用时间轮 Timewheel

码农软件 · 软件分类 · 常用工具包 · 2019-08-14 22:12:13

软件介绍

一个通用的timewheel工具类

通用粗精度的timewheel,只启动一个timer,可监听任意多的到期时间,放入的用户数据可以是任何类型。

接口说明:

  1. Start: 开始一个timewheel ;

  2. SetCallback: 设置时间到期时的回调函数,回调函数中不可作过于耗时的操作,以免卡住timewheel的正常运行;

  3. Add: 添加需要监控的对象,务必在Start调用后再调用此接口;

  4. Stop: 停止此timewheel

本文地址:https://www.codercto.com/soft/d/12381.html

Programming the Mobile Web

Programming the Mobile Web

Maximiliano Firtman / O'Reilly Media / 2010-07-23 / $44.99

* Learn how to use your existing skills to move into mobile web development * Discover the new possibilities of mobile web development, and understand its limitations * Get detailed coverage of ......一起来看看 《Programming the Mobile Web》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

在线进制转换器
在线进制转换器

各进制数互转换器

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码