MCPcopy Create free account
hub / github.com/Cyinx/einx / GetSeqID

Method GetSeqID

timer/timer_manager.go:50–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50func (this *TimerManager) GetSeqID() uint32 {
51 this.seqIDIndex++
52 if this.seqIDIndex == 0 || this.seqIDIndex >= 0xffffff {
53 this.seqIDIndex = 1
54 }
55 return this.seqIDIndex
56}
57
58func (this *TimerManager) AddTimer(delay uint64, op TimerHandler, args ...interface{}) uint64 {
59 seqID := this.GetSeqID()

Callers 1

AddTimerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected