Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 301 for waitc (0.03 sec)

  1. pkg/kube/kubetypes/types.go

    	KnownOrCallback(s schema.GroupVersionResource, f func(stop <-chan struct{})) bool
    	// WaitForCRD waits until the request CRD exists, and returns true on success. A false return value
    	// indicates the CRD does not exist but the wait failed or was canceled.
    	// This is useful to conditionally enable controllers based on CRDs being created.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. src/cmd/go/internal/par/work.go

    			if w.waiting == w.running {
    				// All done.
    				w.wait.Broadcast()
    				w.mu.Unlock()
    				return
    			}
    			w.wait.Wait()
    			w.waiting--
    		}
    
    		// Pick something to do at random,
    		// to eliminate pathological contention
    		// in case items added at about the same time
    		// are most likely to contend.
    		i := rand.Intn(len(w.todo))
    		item := w.todo[i]
    		w.todo[i] = w.todo[len(w.todo)-1]
    		w.todo = w.todo[:len(w.todo)-1]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 15:54:54 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. pkg/kube/multicluster/cluster.go

    	Update
    )
    
    func (a ACTION) String() string {
    	switch a {
    	case Add:
    		return "Add"
    	case Update:
    		return "Update"
    	}
    	return "Unknown"
    }
    
    // Run starts the cluster's informers and waits for caches to sync. Once caches are synced, we mark the cluster synced.
    // This should be called after each of the handlers have registered informers, and should be run in a goroutine.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 06 02:13:10 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher_test.go

    	}
    }
    
    func retryWithExponentialBackOff(initialDuration time.Duration, fn wait.ConditionFunc) error {
    	backoff := wait.Backoff{
    		Duration: initialDuration,
    		Factor:   3,
    		Jitter:   0,
    		Steps:    6,
    	}
    	return wait.ExponentialBackoff(backoff, fn)
    }
    
    func TestPluginRegistration(t *testing.T) {
    	socketDir := initTempDir(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 04 06:56:50 UTC 2023
    - 8K bytes
    - Viewed (0)
  5. internal/config/batch/batch.go

    	config.KV{
    		Key:   ReplicationWorkersWait,
    		Value: "0ms", // No wait by default between each replication attempts.
    	},
    	config.KV{
    		Key:   KeyRotationWorkersWait,
    		Value: "0ms", // No wait by default between each key rotation attempts.
    	},
    	config.KV{
    		Key:   ExpirationWorkersWait,
    		Value: "0ms", // No wait by default between each expiration attempts.
    	},
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/workerApi/waitForCompletion/kotlin/build.gradle.kts

                }
            }
    
            // Wait for all asynchronous work submitted to this queue to complete before continuing
            workQueue.await()
            logger.lifecycle("Created ${outputDir.get().asFile.listFiles().size} reversed files in ${outputDir.get().asFile.toRelativeString(projectLayout.projectDirectory.asFile)}")
            // end::wait-for-completion[]
        }
    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

          }
          barrier.await(); // release the threads!
          barrier.await(); // wait for them all to complete
          assertEquals(1, task.get().intValue());
          assertEquals(1, counter.get());
        }
        executor.shutdown();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // blocking wait
      public void testToString() throws Exception {
        final CountDownLatch enterLatch = new CountDownLatch(1);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/workerApi/waitForCompletion/groovy/build.gradle

                }
            }
    
            // Wait for all asynchronous work submitted to this queue to complete before continuing
            workQueue.await()
            logger.lifecycle("Created ${outputDir.get().asFile.listFiles().length} reversed files in ${projectLayout.projectDirectory.asFile.relativePath(outputDir.get().asFile)}")
    
            // end::wait-for-completion[]
        }
    }
    
    task reverseFiles(type: ReverseFiles) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  9. src/unique/handle_test.go

    func drainMaps(t *testing.T) {
    	t.Helper()
    
    	wait := make(chan struct{}, 1)
    
    	// Set up a one-time notification for the next time the cleanup runs.
    	// Note: this will only run if there's no other active cleanup, so
    	// we can be sure that the next time cleanup runs, it'll see the new
    	// notification.
    	cleanupMu.Lock()
    	cleanupNotify = append(cleanupNotify, func() {
    		select {
    		case wait <- struct{}{}:
    		default:
    		}
    	})
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:14:07 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. pkg/queue/instance_test.go

    			out = append(out, i)
    			defer mu.Unlock()
    			wg.Done()
    			return nil
    		})
    
    		// Start the queue at the halfway point.
    		if i == numValues/2 {
    			go q.Run(stop)
    		}
    	}
    
    	// wait for all task processed
    	wg.Wait()
    
    	if len(out) != numValues {
    		t.Fatalf("expected output array length %d to equal %d", len(out), numValues)
    	}
    
    	for i := 0; i < numValues; i++ {
    		if i != out[i] {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jul 21 16:30:36 UTC 2023
    - 3.4K bytes
    - Viewed (0)
Back to top