Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ZeppelinMC/Zeppelin
/ AddNew
Method
AddNew
server/tick/tick.go:30–37 ·
view source on GitHub ↗
(f func())
Source
from the content-addressed store, hash-verified
28
}
29
30
func
(mgr *TickManager) AddNew(f
func
()) {
31
tick := mgr.New()
32
go
func
() {
33
for
range
tick.C {
34
f()
35
}
36
}()
37
}
38
39
func
(mgr *TickManager) SetFrequency(tps int) error {
40
mgr.mu.RLock()
Callers
1
createTicker
Method · 0.80
Calls
1
New
Method · 0.95
Tested by
no test coverage detected