Skip to content

rfyiamcool/timingwheel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

timingwheel

golang fast timingwheel

Usage

package main

import (
	"time"

	"github.com/rfyiamcool/timingwheel"
)

func main() {
	tw := timingwheel.NewTimingWheel(1*time.Second, 60)
	tw.Start()

	tw.Sleep(1 * time.Second)

	select {
	case <-tw.After(1 * time.Second):
	}
}

About

fast timingwheel

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages