项目作者: anjieych

项目描述 :
Common pool for goroutine and timer
高级语言: Go
项目地址: git://github.com/anjieych/gopool.git
创建时间: 2018-03-21T08:51:23Z
项目社区:https://github.com/anjieych/gopool

开源协议:

下载


gopool

Common pool for goroutine and timer

Usage of Timerpool

  1. var GlobalTimerpool Timerpool
  2. var timer=GlobalTimerpool.Get(1*time.Second)

Usage of Grpool

  1. var grpooler = gopool.NewGrpool(1024,1, 1)
  2. grpooler.Schedule(func(){ do something }())