Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/CodisLabs/codis
/ Sleep
Method
Sleep
pkg/proxy/delay.go:39–42 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
37
}
38
39
func
(d *DelayExp2) Sleep() {
40
total := d.NextValue()
41
time.Sleep(d.Unit * time.Duration(total))
42
}
43
44
func
(d *DelayExp2) SleepWithCancel(canceled
func
() bool) {
45
total := d.NextValue()
Callers
nothing calls this directly
Calls
3
NextValue
Method · 0.95
Duration
Method · 0.80
Sleep
Method · 0.65
Tested by
no test coverage detected