MCPcopy Index your code
hub / github.com/kopia/kopia / Repeat

Method Repeat

internal/fault/fault.go:55–61  ·  view source on GitHub ↗

Repeat causes the fault to repeat N times.

(n int)

Source from the content-addressed store, hash-verified

53
54// Repeat causes the fault to repeat N times.
55func (f *Fault) Repeat(n int) *Fault {
56 f.mu.Lock()
57 f.repeatCount = n
58 f.mu.Unlock()
59
60 return f
61}
62
63// SleepFor sleeps for the specified amount of time.
64func (f *Fault) SleepFor(d time.Duration) *Fault {

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65