- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for PollImmediateUntilWithContext (0.36 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/wait/poll.go
return PollImmediateUntilWithContext(ContextForChannel(stopCh), interval, condition.WithContext()) } // PollImmediateUntilWithContext tries a condition func until it returns true, // an error or the specified context is cancelled or expired. // // PollImmediateUntilWithContext runs the 'condition' before waiting for the interval.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 26 06:13:35 UTC 2023 - 14K bytes - Viewed (0) -
pkg/registry/flowcontrol/rest/storage_flowcontrol.go
defer cancel() if !cache.WaitForCacheSync(ctx.Done(), bce.informersSynced...) { return fmt.Errorf("APF bootstrap ensurer timed out waiting for cache sync") } err = wait.PollImmediateUntilWithContext( ctx, time.Second, func(context.Context) (bool, error) { if err := ensure(ctx, clientset, bce.fsLister, bce.plcLister); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:35 UTC 2023 - 12.3K bytes - Viewed (0) -
pkg/controller/garbagecollector/garbagecollector.go
// have resynced. gc.workerLock.Lock() defer gc.workerLock.Unlock() // Once we get here, we should not unpause workers until we've successfully synced attempt := 0 wait.PollImmediateUntilWithContext(ctx, 100*time.Millisecond, func(ctx context.Context) (bool, error) { attempt++ // On a reattempt, check if available resources have changed if attempt > 1 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 32.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/wait/wait_test.go
defer func() { if test.cancelContextAfterNthAttempt == attempts { cancel() } }() c := test.condition(attempts) return c(ctx) } err := PollImmediateUntilWithContext(ctx, time.Millisecond, conditionWrapper) if test.errExpected != err { t.Errorf("Expected error: %v, but got: %v", test.errExpected, err) } if test.attemptsExpected != attempts {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 41.1K bytes - Viewed (0)