Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,040 for ONCE (0.03 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. tensorflow/c/experimental/filesystem/BUILD

    # Experimental filesystem C APIs for TensorFlow.
    # Will be moved in proper place once all filesystems are converted to the
    # modular framework.
    load("//tensorflow:tensorflow.bzl", "tf_cc_test")
    load("//tensorflow/core/platform:rules_cc.bzl", "cc_library")
    
    package(
        # copybara:uncomment default_applicable_licenses = ["//tensorflow:license"],
        licenses = ["notice"],
    )
    
    # This is only for plugins
    cc_library(
        name = "filesystem_interface",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 27 18:00:18 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. src/internal/goroot/gc.go

    		return false
    	case "gccgo":
    		return gccgoSearch.isStandard(path)
    	default:
    		panic("unknown compiler " + compiler)
    	}
    }
    
    // gccgoSearch holds the gccgo search directories.
    type gccgoDirs struct {
    	once sync.Once
    	dirs []string
    }
    
    // gccgoSearch is used to check whether a gccgo package exists in the
    // standard library.
    var gccgoSearch gccgoDirs
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 18:16:28 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. subprojects/core-api/src/main/java/org/gradle/process/ExecOutput.java

     *
     * @since 7.5
     */
    @Incubating
    public interface ExecOutput {
        /**
         * Returns a provider of the execution result.
         *
         * <p>
         * The external process is executed only once and only when the value is requested for the first
         * time.
         * </p>
         * <p>
         * If starting the process results in exception then the ensuing exception is permanently
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 23 00:18:08 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  8. src/internal/godebug/godebug.go

    	"unsafe"
    	_ "unsafe" // go:linkname
    )
    
    // A Setting is a single setting in the $GODEBUG environment variable.
    type Setting struct {
    	name string
    	once sync.Once
    	*setting
    }
    
    type setting struct {
    	value          atomic.Pointer[value]
    	nonDefaultOnce sync.Once
    	nonDefault     atomic.Uint64
    	info           *godebugs.Info
    }
    
    type value struct {
    	text   string
    	bisect *bisect.Matcher
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 14:19:39 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/telemetry/counter/countertest/countertest.go

    }
    
    // Open enables telemetry data writing to disk.
    // This is supposed to be called once during the program execution
    // (i.e. typically in TestMain), and must not be used with
    // golang.org/x/telemetry/counter.Open.
    func Open(telemetryDir string) {
    	openedMu.Lock()
    	defer openedMu.Unlock()
    	if opened {
    		panic("Open was called more than once")
    	}
    	telemetry.Default = telemetry.NewDir(telemetryDir)
    
    	counter.Open()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:13:09 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  10. src/cmd/go/internal/imports/tags.go

    // license that can be found in the LICENSE file.
    
    package imports
    
    import (
    	"cmd/go/internal/cfg"
    	"sync"
    )
    
    var (
    	tags     map[string]bool
    	tagsOnce sync.Once
    )
    
    // Tags returns a set of build tags that are true for the target platform.
    // It includes GOOS, GOARCH, the compiler, possibly "cgo",
    // release tags like "go1.13", and user-specified build tags.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 26 17:43:59 UTC 2022
    - 1.3K bytes
    - Viewed (0)
Back to top