MCPcopy
hub / github.com/kubernetes/client-go / waitForAdded

Function waitForAdded

util/workqueue/delaying_queue_test.go:237–245  ·  view source on GitHub ↗
(q DelayingInterface, depth int)

Source from the content-addressed store, hash-verified

235}
236
237func waitForAdded(q DelayingInterface, depth int) error {
238 return wait.Poll(1*time.Millisecond, 10*time.Second, func() (done bool, err error) {
239 if q.Len() == depth {
240 return true, nil
241 }
242
243 return false, nil
244 })
245}
246
247func waitForWaitingQueueToFill(q DelayingInterface) error {
248 return wait.Poll(1*time.Millisecond, 10*time.Second, func() (done bool, err error) {

Callers 4

TestSimpleQueueFunction · 0.85
TestDedupingFunction · 0.85
TestAddTwoFireEarlyFunction · 0.85
TestCopyShiftingFunction · 0.85

Calls 1

LenMethod · 0.65

Tested by

no test coverage detected