Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 959 for ONCE (0.73 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. staging/src/k8s.io/apiserver/pkg/reconcilers/peer_endpoint_lease.go

    	if err != nil {
    		return nil, fmt.Errorf("error creating storage factory: %v", err)
    	}
    	var once sync.Once
    	return &peerEndpointLeaseReconciler{
    		serverLeases: &peerEndpointLeases{
    			storage:   leaseStorage,
    			destroyFn: func() { once.Do(destroyFn) },
    			baseKey:   baseKey,
    			leaseTime: leaseTime,
    		},
    	}, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_distributed_test.cc

      }
    
     private:
      bool first_call_ = true;
    };
    
    // After the graph pass is registered, it takes effect globally and can affect
    // other test cases. Define a static variable to switch it on and off.
    bool GraphErrorInjectionPass::enabled_ = false;
    
    // Test to ensure that a registered graph optimization pass is only executed
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  8. pilot/pkg/model/jwks_resolver_test.go

    			in:                []string{"testIssuer", mockCertURL},
    			expectedJwtPubkey: test.JwtPubKey1,
    		},
    		{
    			in:                []string{"testIssuer", mockCertURL}, // Send two same request, mock server is expected to hit only once because of the cache.
    			expectedJwtPubkey: test.JwtPubKey1,
    		},
    	}
    	for _, c := range cases {
    		pk, err := r.GetPublicKey(c.in[0], c.in[1], testRequestTimeout)
    		if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 09:47:21 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  9. src/strings/replace.go

    package strings
    
    import (
    	"io"
    	"sync"
    )
    
    // Replacer replaces a list of strings with replacements.
    // It is safe for concurrent use by multiple goroutines.
    type Replacer struct {
    	once   sync.Once // guards buildOnce method
    	r      replacer
    	oldnew []string
    }
    
    // replacer is the interface that a replacement algorithm needs to implement.
    type replacer interface {
    	Replace(s string) string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:10:31 UTC 2023
    - 14.5K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/informers_test.go

    		Spec: corev1.PodSpec{
    			NodeName: NodeName,
    		},
    		Status: corev1.PodStatus{
    			PodIP: "11.1.1.12",
    		},
    	}
    	ns := &corev1.Namespace{
    		ObjectMeta: metav1.ObjectMeta{Name: "test"},
    		// TODO: once we if the add pod bug, re-enable this and remove the patch below
    		//		Labels: map[string]string{constants.DataplaneModeLabel: constants.DataplaneModeAmbient},
    
    	}
    
    	client := kube.NewFakeClient(ns, pod)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 22.2K bytes
    - Viewed (0)
Back to top