MCPcopy
hub / github.com/CodisLabs/codis / After

Method After

pkg/proxy/delay.go:34–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32}
33
34func (d *DelayExp2) After() <-chan time.Time {
35 total := d.NextValue()
36 return time.After(d.Unit * time.Duration(total))
37}
38
39func (d *DelayExp2) Sleep() {
40 total := d.NextValue()

Callers

nothing calls this directly

Calls 3

NextValueMethod · 0.95
DurationMethod · 0.80
AfterMethod · 0.65

Tested by

no test coverage detected