Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 2,949 for makeID (0.22 sec)

  1. src/time/sleep_test.go

    )
    
    // newTimerFunc simulates NewTimer using AfterFunc,
    // but this version will not hit the special cases for channels
    // that are used when calling NewTimer.
    // This makes it easy to test both paths.
    func newTimerFunc(d Duration) *Timer {
    	c := make(chan Time, 1)
    	t := AfterFunc(d, func() { c <- Now() })
    	t.C = c
    	return t
    }
    
    // haveHighResSleep is true if the system supports at least ~1ms sleeps.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:33:57 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/internal/typeparams/free.go

    package typeparams
    
    import (
    	"go/types"
    
    	"golang.org/x/tools/internal/aliases"
    )
    
    // Free is a memoization of the set of free type parameters within a
    // type. It makes a sequence of calls to [Free.Has] for overlapping
    // types more efficient. The zero value is ready for use.
    //
    // NOTE: Adapted from go/types/infer.go. If it is later exported, factor.
    type Free struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/unitchecker/unitchecker.go

    		GoVersion: cfg.GoVersion,
    	}
    	info := &types.Info{
    		Types:      make(map[ast.Expr]types.TypeAndValue),
    		Defs:       make(map[*ast.Ident]types.Object),
    		Uses:       make(map[*ast.Ident]types.Object),
    		Implicits:  make(map[ast.Node]types.Object),
    		Instances:  make(map[*ast.Ident]types.Instance),
    		Scopes:     make(map[ast.Node]*types.Scope),
    		Selections: make(map[*ast.SelectorExpr]*types.Selection),
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13K bytes
    - Viewed (0)
  4. src/text/template/template.go

    	}
    	return nt
    }
    
    // init guarantees that t has a valid common structure.
    func (t *Template) init() {
    	if t.common == nil {
    		c := new(common)
    		c.tmpl = make(map[string]*Template)
    		c.parseFuncs = make(FuncMap)
    		c.execFuncs = make(map[string]reflect.Value)
    		t.common = c
    	}
    }
    
    // Clone returns a duplicate of the template, including all associated
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/conversion/converter.go

    			}
    		}
    	}
    	return c.converter.Convert(in, toGVK.GroupVersion())
    }
    
    // safeConverterWrapper is a wrapper over an unsafe object converter that makes copy of the input and then delegate to the unsafe converter.
    type safeConverterWrapper struct {
    	unsafe runtime.ObjectConvertor
    }
    
    var _ runtime.ObjectConvertor = &safeConverterWrapper{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/google/pprof/profile/merge.go

    		for i, v := range src.Value {
    			ss.Value[i] += v
    		}
    		return ss
    	}
    
    	// Make new sample.
    	s := &Sample{
    		Location: make([]*Location, len(src.Location)),
    		Value:    make([]int64, len(src.Value)),
    		Label:    make(map[string][]string, len(src.Label)),
    		NumLabel: make(map[string][]int64, len(src.NumLabel)),
    		NumUnit:  make(map[string][]string, len(src.NumLabel)),
    	}
    	for i, l := range src.Location {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 17K bytes
    - Viewed (0)
  7. pkg/istio-agent/xds_proxy_delta.go

    		upstreamError:     make(chan error), // can be produced by recv and send
    		downstreamError:   make(chan error), // can be produced by recv and send
    		deltaRequestsChan: channels.NewUnbounded[*discovery.DeltaDiscoveryRequest](),
    		// Allow a buffer of 1. This ensures we queue up at most 2 (one in process, 1 pending) responses before forwarding.
    		deltaResponsesChan: make(chan *discovery.DeltaDiscoveryResponse, 1),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 04 20:29:08 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  8. src/net/fd_windows.go

    		isloopback = ra.Addr[0] == 127
    	case *syscall.SockaddrInet6:
    		isloopback = ra.Addr == [16]byte(IPv6loopback)
    	default:
    		panic("unexpected type in connect")
    	}
    	if isloopback {
    		// This makes ConnectEx() fails faster if the target port on the localhost
    		// is not reachable, instead of waiting for 2s.
    		params := windows.TCP_INITIAL_RTO_PARAMETERS{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 16:46:10 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. src/net/http/triv.go

    	helloRequests.Add(1)
    	io.WriteString(w, "hello, world!\n")
    }
    
    // Simple counter server. POSTing to it will set the value.
    type Counter struct {
    	mu sync.Mutex // protects n
    	n  int
    }
    
    // This makes Counter satisfy the [expvar.Var] interface, so we can export
    // it directly.
    func (ctr *Counter) String() string {
    	ctr.mu.Lock()
    	defer ctr.mu.Unlock()
    	return strconv.Itoa(ctr.n)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/podtopologyspread/filtering.go

    	}
    
    	s := preFilterState{
    		Constraints:          constraints,
    		TpKeyToCriticalPaths: make(map[string]*criticalPaths, len(constraints)),
    		TpPairToMatchNum:     make(map[topologyPair]int, sizeHeuristic(len(allNodes), constraints)),
    	}
    
    	tpCountsByNode := make([]map[topologyPair]int, len(allNodes))
    	requiredNodeAffinity := nodeaffinity.GetRequiredNodeAffinity(pod)
    	processNode := func(i int) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 12.4K bytes
    - Viewed (0)
Back to top