Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 121 for newD (0.21 sec)

  1. src/cmd/vendor/golang.org/x/telemetry/internal/counter/file.go

    	if v, _, _, _ := current.lookup(name); v != nil {
    		return v, nop
    	}
    	v, newM, err := current.newCounter(name)
    	if err != nil {
    		debugPrintf("newCounter %s: %v\n", name, err)
    		return nil, nop
    	}
    
    	cleanup = nop
    	if newM != nil {
    		f.current.Store(newM)
    		cleanup = f.invalidateCounters
    	}
    	return v, cleanup
    }
    
    // Open associates counting with the defaultFile.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. pkg/config/mesh/kubemesh/watcher_test.go

    	stop := test.NewStop(t)
    	w := NewConfigMapWatcher(client, namespace, name, key, false, stop)
    	client.RunAndWait(stop)
    
    	var mu sync.Mutex
    	newM := mesh.DefaultMeshConfig()
    	w.AddMeshHandler(func() {
    		mu.Lock()
    		defer mu.Unlock()
    		newM = w.Mesh()
    	})
    
    	steps := []struct {
    		added   *v1.ConfigMap
    		updated *v1.ConfigMap
    		deleted *v1.ConfigMap
    
    		expect *meshconfig.MeshConfig
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  3. pkg/apis/admissionregistration/validation/validation.go

    }
    
    func newPreexistingExpressions() preexistingExpressions {
    	return preexistingExpressions{
    		matchConditionExpressions:        sets.New[string](),
    		validationExpressions:            sets.New[string](),
    		validationMessageExpressions:     sets.New[string](),
    		auditAnnotationValuesExpressions: sets.New[string](),
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 56.6K bytes
    - Viewed (0)
  4. test/fixedbugs/issue56778.dir/a.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a
    
    type A struct {
    	New func() any
    }
    
    func NewA(i int) *A {
    	return &A{
    		New: func() any {
    			_ = i
    			return nil
    		},
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 17 18:31:28 UTC 2022
    - 293 bytes
    - Viewed (0)
  5. src/internal/types/testdata/fixedbugs/issue25838.go

    package p
    
    // examples from the issue
    
    type (
    	e = f
    	f = g
    	g = []h
    	h i
    	i = j
    	j = e
    )
    
    type (
    	e1 = []h1
    	h1 e1
    )
    
    type (
    	P = *T
    	T P
    )
    
    func newA(c funcAlias) A {
    	return A{c: c}
    }
    
    type B struct {
    	a *A
    }
    
    type A struct {
    	c funcAlias
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 430 bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/mod/sumdb/tlog/tile.go

    	for level := uint(0); newTreeSize>>(H*level) > 0; level++ {
    		oldN := oldTreeSize >> (H * level)
    		newN := newTreeSize >> (H * level)
    		if oldN == newN {
    			continue
    		}
    		for n := oldN >> H; n < newN>>H; n++ {
    			tiles = append(tiles, Tile{H: h, L: int(level), N: n, W: 1 << H})
    		}
    		n := newN >> H
    		if w := int(newN - n<<H); w > 0 {
    			tiles = append(tiles, Tile{H: h, L: int(level), N: n, W: w})
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13K bytes
    - Viewed (0)
  7. src/fmt/print.go

    func parsenum(s string, start, end int) (num int, isnum bool, newi int) {
    	if start >= end {
    		return 0, false, end
    	}
    	for newi = start; newi < end && '0' <= s[newi] && s[newi] <= '9'; newi++ {
    		if tooLarge(num) {
    			return 0, false, end // Overflow; crazy long number most likely.
    		}
    		num = num*10 + int(s[newi]-'0')
    		isnum = true
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  8. buildscripts/rewrite-old-new.sh

    Harshavardhana <******@****.***> 1716837466 -0700
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 27 19:17:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. src/runtime/mgcwork.go

    			}
    			// Record the new span in the busy list.
    			lock(&work.wbufSpans.lock)
    			work.wbufSpans.busy.insert(s)
    			unlock(&work.wbufSpans.lock)
    		}
    		// Slice up the span into new workbufs. Return one and
    		// put the rest on the empty list.
    		for i := uintptr(0); i+_WorkbufSize <= workbufAlloc; i += _WorkbufSize {
    			newb := (*workbuf)(unsafe.Pointer(s.base() + i))
    			newb.nobj = 0
    			lfnodeValidate(&newb.node)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/conversion/converter_test.go

    		(*A)(nil), (*B)(nil),
    		func(a, b interface{}, s Scope) error {
    			return nil
    		},
    	)
    	newc := c.WithConversions(ext)
    
    	a := A{}
    	b := B{}
    	if err := c.Convert(&a, &b, nil); err == nil || err.Error() != "conversion function should be overridden" {
    		t.Errorf("unexpected error: %v", err)
    	}
    	if err := newc.Convert(&a, &b, nil); err != nil {
    		t.Errorf("%v", err)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 06 06:28:24 UTC 2021
    - 6.7K bytes
    - Viewed (0)
Back to top