Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,111 for ONCE (0.06 sec)

  1. guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

      }
    
      public void testExecutorOnlyCalledOnce() throws Exception {
        TestService service = new TestService();
        service.startAsync().awaitRunning();
        // It should be called once during startup.
        assertEquals(1, service.numberOfTimesExecutorCalled.get());
        for (int i = 1; i < 10; i++) {
          service.runFirstBarrier.await();
          assertEquals(i, service.numberOfTimesRunCalled.get());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  2. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/xcode/fixtures/AbstractXcodeIntegrationSpec.groovy

        // TODO: Use @RequiresInstalledToolChain instead once Xcode test are sorted out
        void assumeSwiftCompilerVersion(SwiftVersion swiftVersion) {
            assert toolChain != null, "You need to specify Swift tool chain requirement with 'requireSwiftToolChain()'"
            assumeTrue(toolChain.version.major == swiftVersion.version)
        }
    
        // TODO: Use @RequiresInstalledToolChain instead once Xcode test are sorted out
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  3. pkg/registry/core/service/portallocator/controller/repair.go

    func (c *Repair) RunUntil(onFirstSuccess func(), stopCh chan struct{}) {
    	c.broadcaster.StartRecordingToSink(stopCh)
    	defer c.broadcaster.Shutdown()
    
    	var once sync.Once
    	wait.Until(func() {
    		if err := c.runOnce(); err != nil {
    			runtime.HandleError(err)
    			return
    		}
    		once.Do(onFirstSuccess)
    	}, c.interval, stopCh)
    }
    
    // runOnce verifies the state of the port allocations and returns an error if an unrecoverable problem occurs.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/scope.go

    type lazyObject struct {
    	parent  *Scope
    	resolve func() Object
    	obj     Object
    	once    sync.Once
    }
    
    // resolve returns the Object represented by obj, resolving lazy
    // objects as appropriate.
    func resolve(name string, obj Object) Object {
    	if lazy, ok := obj.(*lazyObject); ok {
    		lazy.once.Do(func() {
    			obj := lazy.resolve()
    
    			if _, ok := obj.(*lazyObject); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  5. src/go/types/scope.go

    type lazyObject struct {
    	parent  *Scope
    	resolve func() Object
    	obj     Object
    	once    sync.Once
    }
    
    // resolve returns the Object represented by obj, resolving lazy
    // objects as appropriate.
    func resolve(name string, obj Object) Object {
    	if lazy, ok := obj.(*lazyObject); ok {
    		lazy.once.Do(func() {
    			obj := lazy.resolve()
    
    			if _, ok := obj.(*lazyObject); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. internal/event/target/kafka.go

    	}
    
    	// If batch is enabled, the event will be batched in memory
    	// and will be committed once the batch is full.
    	if target.batch != nil {
    		return target.addToBatch(key)
    	}
    
    	eventData, eErr := target.store.Get(key.Name)
    	if eErr != nil {
    		// The last event key in a successful batch will be sent in the channel atmost once by the replayEvents()
    		// Such events will not exist and wouldve been already been sent successfully.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Jun 01 15:02:59 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/phases/upgrade/postupgrade.go

    	var errs []error
    
    	// If the coredns ConfigMap is missing, show a warning and assume that the
    	// DNS addon was skipped during "kubeadm init", and that its redeployment on upgrade is not desired.
    	//
    	// TODO: remove this once "kubeadm upgrade apply" phases are supported:
    	//   https://github.com/kubernetes/kubeadm/issues/1318
    	var missingCoreDNSConfigMap bool
    	if _, err := client.CoreV1().ConfigMaps(metav1.NamespaceSystem).Get(
    		context.TODO(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/plugins/DefaultPluginManagerTest.groovy

                assert p.id == "foo"
                assert p.namespace == null
                assert p.name == "foo"
            }
            0 * action._
        }
    
        def "rules plugin is applied at most once"() {
            def action = Mock(Action)
    
            given:
            addPluginId("foo", rulesClass)
            manager.withPlugin("foo", action)
    
            when:
            manager.apply(rulesClass)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  9. pkg/volume/volume.go

    	// self-determined directory path. The mount point and its
    	// content should be owned by `fsUser` or 'fsGroup' so that it can be
    	// accessed by the pod. This may be called more than once, so
    	// implementations must be idempotent.
    	// It could return following types of errors:
    	//   - TransientOperationFailure
    	//   - UncertainProgressError
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/AbstractService.java

       * #notifyFailed(Throwable)} instead.
       *
       * <p>This method should return promptly; prefer to do work on a different thread where it is
       * convenient. It is invoked exactly once on service startup, even when {@link #startAsync} is
       * called multiple times.
       */
      @ForOverride
      protected abstract void doStart();
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 20.4K bytes
    - Viewed (0)
Back to top