MCPcopy 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
39func (d *DelayExp2) Sleep() {
40 total := d.NextValue()
41 time.Sleep(d.Unit * time.Duration(total))
42}
43
44func (d *DelayExp2) SleepWithCancel(canceled func() bool) {
45 total := d.NextValue()

Callers

nothing calls this directly

Calls 3

NextValueMethod · 0.95
DurationMethod · 0.80
SleepMethod · 0.65

Tested by

no test coverage detected