Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 2,380 for ONCE (0.13 sec)

  1. pkg/proxy/winkernel/hns_test.go

    	epIpAddressRemote = "192.168.2.3"
    	epPaAddress       = "10.0.0.3"
    	protocol          = 6
    	internalPort      = 80
    	externalPort      = 32440
    )
    
    func TestGetNetworkByName(t *testing.T) {
    	// TODO: remove skip once the test has been fixed.
    	t.Skip("Skipping failing test on Windows.")
    	hns := hns{hcn: newHcnImpl()}
    	Network := mustTestNetwork(t)
    
    	network, err := hns.getNetworkByName(Network.Name)
    	if err != nil {
    		t.Error(err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/testdata/pgo/devirtualize/devirt.go

    	// The call below must evaluate selectA() to determine the receiver to
    	// use. This should happen exactly once per iteration. Assert that is
    	// the case to ensure the IR manipulation does not result in over- or
    	// under-evaluation.
    	selectI := 0
    	selectA := func(gotI int) Adder {
    		if gotI != selectI {
    			panic(fmt.Sprintf("selectA not called once per iteration; got i %d want %d", gotI, selectI))
    		}
    		selectI++
    
    		if gotI%10 == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 13 18:17:57 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  3. architecture/build-state-model.md

    ### Build session state
    
    A "build session" represents a single invocation of Gradle, for example when you run `gradlew build`.
    A session runs the build one or more times.
    For example, when continuous build is enabled, the session may run the build many times, but when it is disabled, the session will run the build once only.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 13:39:49 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. platforms/core-runtime/functional/src/test/groovy/org/gradle/internal/lazy/LazyTest.groovy

    import java.util.concurrent.TimeUnit
    import java.util.concurrent.atomic.AtomicInteger
    import java.util.function.Supplier
    
    class LazyTest extends Specification {
    
        def "#factoryName supplier code is executed once with use"() {
            def supplier = Mock(Supplier)
    
            when:
            def lazy = factory(supplier)
    
            then:
            0 * supplier._
    
            when:
            lazy.use {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:22:02 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testsanitizers/cc_test.go

    	"strconv"
    	"strings"
    	"sync"
    	"syscall"
    	"testing"
    	"time"
    	"unicode"
    )
    
    var overcommit struct {
    	sync.Once
    	value int
    	err   error
    }
    
    // requireOvercommit skips t if the kernel does not allow overcommit.
    func requireOvercommit(t *testing.T) {
    	t.Helper()
    
    	overcommit.Once.Do(func() {
    		var out []byte
    		out, overcommit.err = os.ReadFile("/proc/sys/vm/overcommit_memory")
    		if overcommit.err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 09 20:00:56 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/storage_factory.go

    			Codec:          storageConfig.Codec,
    		}
    		cacher, err := cacherstorage.NewCacherFromConfig(cacherConfig)
    		if err != nil {
    			return nil, func() {}, err
    		}
    		var once sync.Once
    		destroyFunc := func() {
    			once.Do(func() {
    				cacher.Stop()
    				d()
    			})
    		}
    
    		return cacher, destroyFunc, nil
    	}
    }
    
    func objectTypeToArgs(obj runtime.Object) []interface{} {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/cacher/caching_object.go

    type metaRuntimeInterface interface {
    	runtime.Object
    	metav1.Object
    }
    
    // serializationResult captures a result of serialization.
    type serializationResult struct {
    	// once should be used to ensure serialization is computed once.
    	once sync.Once
    
    	// raw is serialized object.
    	raw []byte
    	// err is error from serialization.
    	err error
    }
    
    // serializationsCache is a type for caching serialization results.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 18:03:48 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  8. pkg/registry/core/componentstatus/validator.go

    }
    
    type HttpServer struct {
    	Addr        string
    	Port        int
    	Path        string
    	EnableHTTPS bool
    	TLSConfig   *tls.Config
    	Validate    ValidatorFn
    	Prober      httpprober.Prober
    	Once        sync.Once
    }
    
    type ServerStatus struct {
    	// +optional
    	Component string `json:"component,omitempty"`
    	// +optional
    	Health string `json:"health,omitempty"`
    	// +optional
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 20 13:08:41 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/lifecycle_signals.go

    func newNamedChannelWrapper(name string) lifecycleSignal {
    	return &namedChannelWrapper{
    		name: name,
    		once: sync.Once{},
    		ch:   make(chan struct{}),
    	}
    }
    
    type namedChannelWrapper struct {
    	name string
    	once sync.Once
    	ch   chan struct{}
    }
    
    func (e *namedChannelWrapper) Signal() {
    	e.once.Do(func() {
    		close(e.ch)
    	})
    }
    
    func (e *namedChannelWrapper) Signaled() <-chan struct{} {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 15:49:30 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/aliases/aliases.go

    // [Enabled], which computes the effective value of
    // GODEBUG=gotypesalias=... by invoking the type checker. The Enabled
    // function is expensive and should be called once per task (e.g.
    // package import), not once per call to NewAlias.
    func NewAlias(enabled bool, pos token.Pos, pkg *types.Package, name string, rhs types.Type) *types.TypeName {
    	if enabled {
    		tname := types.NewTypeName(pos, pkg, name, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 1.1K bytes
    - Viewed (0)
Back to top