Registry / utility / russellluo-timingwheel

russellluo-timingwheel

JSON →
library0.0.0-20220218152713-54845bda3108gogounverified

Package timingwheel implements a hierarchical timing wheel for efficient timer management.

go get github.com/RussellLuo/timingwheel
INSTALL
IMPORT
SIG · RUSSELLLUO-TIMINGW
R
russellluo-timingwheel
utilitygov0.0.0-20220218152713-54845bda3108
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

timingwheel
github.com/RussellLuo/timingwheel

Create a timing wheel and schedule a one-second timer.

package main import ( "fmt" "time" "github.com/RussellLuo/timingwheel" ) func main() { tw := timingwheel.NewTimingWheel(time.Millisecond, 20) tw.Start() defer tw.Stop() tw.AfterFunc(time.Second, func() { fmt.Println("Timer fired") }) time.Sleep(2 * time.Second) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20220218152713-54845bda3108latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
russellluo-timingwheel — go get russellluo-timingwheel · libregistry