- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for PollInfinite (0.21 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/wait/poll.go
func PollUntilWithContext(ctx context.Context, interval time.Duration, condition ConditionWithContextFunc) error { return poll(ctx, false, poller(interval, 0), condition) } // PollInfinite tries a condition func until it returns true or an error // // PollInfinite always waits the interval before the run of 'condition'. // // Some intervals may be missed if the condition takes too long or the time // window is too short. //
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 26 06:13:35 UTC 2023 - 14K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/configuration/configuration_manager_test.go
poller.interval = 1 * time.Millisecond stopCh := make(chan struct{}) defer close(stopCh) go poller.Run(stopCh) // to kick the bootstrap timer go poller.configuration() wait.PollInfinite(1*time.Second, func() (bool, error) { poller.lock.Lock() defer poller.lock.Unlock() return poller.bootstrapped, nil }) _, err := poller.configuration() if err == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 06 02:02:38 UTC 2017 - 2.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_test.go
cacher.Stop() server.Terminate(t) } // Since some tests depend on the fact that GetList shouldn't fail, // we wait until the error from the underlying storage is consumed. if err := wait.PollInfinite(100*time.Millisecond, wrappedStorage.ErrorsConsumed); err != nil { t.Fatalf("Failed to inject list errors: %v", err) } if utilfeature.DefaultFeatureGate.Enabled(features.ResilientWatchCacheInitialization) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 10:12:02 UTC 2024 - 17K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/wait/wait_test.go
go func() { f := ConditionFunc(func() (bool, error) { ch <- struct{}{} select { case <-done: return true, nil default: } return false, nil }) if err := PollInfinite(time.Microsecond, f); err != nil { errc <- fmt.Errorf("unexpected error %v", err) } close(ch) complete <- struct{}{} }() // ensure the condition is opened <-ch
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 41.1K bytes - Viewed (0)