Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 350 for waitms (0.1 sec)

  1. pkg/kubelet/runtimeclass/testing/fake_manager.go

    	return fake.NewSimpleClientset(
    		NewRuntimeClass(EmptyRuntimeClass, ""),
    		NewRuntimeClass(SandboxRuntimeClass, SandboxRuntimeHandler),
    	)
    }
    
    // StartManagerSync starts the manager, and waits for the informer cache to sync.
    // Returns a function to stop the manager, which should be called with a defer:
    //
    //	defer StartManagerSync(t, m)()
    func StartManagerSync(m *runtimeclass.Manager) func() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/internal/generic/interface.go

    	"context"
    
    	"k8s.io/apimachinery/pkg/labels"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/client-go/tools/cache"
    )
    
    type Controller[T runtime.Object] interface {
    	// Meant to be run inside a goroutine
    	// Waits for and reacts to changes in whatever type the controller
    	// is concerned with.
    	//
    	// Returns an error always non-nil explaining why the worker stopped
    	Run(ctx context.Context) error
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 12 18:58:24 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/testing/v2/kms_plugin_mock.go

    		t.Fatalf("failed to start KMS plugin: err: %v", err)
    	}
    	return result
    }
    
    // waitForBase64PluginToBeUp waits until the plugin is ready to serve requests.
    func waitForBase64PluginToBeUp(plugin *Base64Plugin) error {
    	var gRPCErr error
    	var resp *kmsapi.StatusResponse
    	pollErr := wait.PollImmediate(1*time.Second, wait.ForeverTestTimeout, func() (bool, error) {
    		resp, gRPCErr = plugin.Status(context.Background(), &kmsapi.StatusRequest{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 19:25:52 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  4. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/ConcurrentTestUtil.groovy

     *
     * <p>Provides some fixtures for testing:</p>
     *
     * <ul>
     * <li>An action starts another action asynchronously without waiting for the result.</li>
     * <li>An action starts another action asynchronously and waits for the result.</li>
     * </ul>
     */
    class ConcurrentTestUtil extends ExternalResource {
        private static final Logger LOG = LoggerFactory.getLogger(ConcurrentTestUtil.class)
    
        private Lock lock = new ReentrantLock()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/cmd/upgrade/apply.go

    }
    
    // PerformControlPlaneUpgrade actually performs the upgrade procedure for the cluster of your type (self-hosted or static-pod-hosted)
    func PerformControlPlaneUpgrade(flags *applyFlags, client clientset.Interface, waiter apiclient.Waiter, initCfg *kubeadmapi.InitConfiguration, upgradeCfg *kubeadmapi.UpgradeConfiguration) error {
    	// OK, the cluster is hosted using static pods. Upgrade a static-pod hosted cluster
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 03:55:23 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/MoreExecutors.java

       *   <li>calls {@link ExecutorService#shutdown()}, disabling acceptance of new submitted tasks.
       *   <li>awaits executor service termination for half of the specified timeout.
       *   <li>if the timeout expires, it calls {@link ExecutorService#shutdownNow()}, cancelling
       *       pending tasks and interrupting running tasks.
       *   <li>awaits executor service termination for the other half of the specified timeout.
       * </ol>
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 15 10:40:05 UTC 2024
    - 43.7K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/cmd/phases/upgrade/node/controlplane.go

    		if dryRun {
    			return upgrade.DryRunStaticPodUpgrade(patchesDir, cfg)
    		}
    
    		waiter := apiclient.NewKubeWaiter(data.Client(), data.Cfg().Timeouts.UpgradeManifests.Duration, os.Stdout)
    
    		if err := upgrade.PerformStaticPodUpgrade(client, waiter, cfg, etcdUpgrade, renewCerts, patchesDir); err != nil {
    			return errors.Wrap(err, "couldn't complete the static pod upgrade")
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/device_compiler_client.h

      virtual StatusOr<std::unique_ptr<ExecutableType>> LoadExecutable(
          const XlaCompiler::Options& options,
          const XlaCompiler::CompilationResult& result,
          const std::string& serialized_executable) = 0;
    
      // Waits for the underlying `ClientType` backend's programs to finish
      // executing before returning.
      virtual void WaitForProgramsToFinish() = 0;
    
      virtual ClientType* client() const = 0;
    
     private:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          threadUnexpectedException(t);
        }
      }
    
      //     /**
      //      * Spin-waits up to LONG_DELAY_MS until flag becomes true.
      //      */
      //     public void await(AtomicBoolean flag) {
      //         await(flag, LONG_DELAY_MS);
      //     }
    
      //     /**
      //      * Spin-waits up to the specified timeout until flag becomes true.
      //      */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_test_context.go

    // Depending upon object type, waits afterward until the object is synced
    // by the policy source
    func (p *PolicyTestContext[P, B, E]) update(wait bool, objects ...runtime.Object) error {
    	for _, object := range objects {
    		if err := p.updateOne(object); err != nil {
    			return err
    		}
    	}
    
    	if wait {
    		timeoutCtx, timeoutCancel := context.WithTimeout(p, 3*time.Second)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top