- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 108 for new2 (0.04 sec)
-
internal/grid/types.go
ePool sync.Pool // Elements } // NewArrayOf returns a new ArrayOf. // You must provide a function that returns a new instance of T. func NewArrayOf[T RoundTripper](newFn func() T) *ArrayOf[T] { return &ArrayOf[T]{ ePool: sync.Pool{New: func() any { return newFn() }}, } } // New returns a new empty Array. func (p *ArrayOf[T]) New() *Array[T] { return &Array[T]{ p: p, } }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Apr 01 23:42:09 UTC 2024 - 15.4K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/demo/demoSimple/SimpleAnalysisDemo.kt
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 10:08:01 UTC 2024 - 1.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/guarantee-all-funcs-one-use.mlir
// ----- // Basic test. // CHECK-LABEL: func @f func.func @f() { // CHECK: call @g() : () -> () // CHECK: call @[[NEWG:.+]]() : () -> () func.call @g() : () -> () func.call @g() : () -> () func.return } // CHECK: func @g() // CHECK: func private @[[NEWG]]() func.func @g() { func.return } // ----- // Transitive callees. // CHECK-LABEL: func @f // 2 copies of @g
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 2.1K bytes - Viewed (0) -
src/encoding/xml/typeinfo.go
if oldf.parents[p] != newf.parents[p] { continue Loop } } if len(oldf.parents) > len(newf.parents) { if oldf.parents[len(newf.parents)] == newf.name { conflicts = append(conflicts, i) } } else if len(oldf.parents) < len(newf.parents) { if newf.parents[len(oldf.parents)] == oldf.name { conflicts = append(conflicts, i) } } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 00:23:29 UTC 2023 - 9.6K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/demo/demoSimple/demoTypes.kt
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Feb 06 23:16:59 UTC 2024 - 949 bytes - Viewed (0) -
pkg/config/mesh/networks_watcher_test.go
doneCh := make(chan struct{}, 1) var newN *meshconfig.MeshNetworks w.AddNetworksHandler(func() { newN = w.Networks() close(doneCh) }) // Change the file to trigger the update. n.Networks["test"] = &meshconfig.Network{} writeMessage(t, path, &n) select { case <-doneCh: g.Expect(newN).To(Equal(&n)) g.Expect(w.Networks()).To(Equal(newN)) break case <-time.After(time.Second * 5):
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 1.9K bytes - Viewed (0) -
src/runtime/debugcall.go
gp.schedlink.set(newg) }) // Switch to the new goroutine. mcall(func(gp *g) { // Get newg. newg := gp.schedlink.ptr() gp.schedlink = 0 // Park the calling goroutine. trace := traceAcquire() if trace.ok() { // Trace the event before the transition. It may take a // stack trace, but we won't own the stack after the // transition anymore. trace.GoPark(traceBlockDebugCall, 1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 05 20:50:21 UTC 2024 - 7.1K bytes - Viewed (0) -
pkg/config/mesh/watcher_test.go
assert.Equal(t, w.Mesh(), m) doneCh := make(chan struct{}, 1) var newM *meshconfig.MeshConfig w.AddMeshHandler(func() { newM = w.Mesh() close(doneCh) }) // Change the file to trigger the update. m.IngressClass = "foo" writeMessage(t, path, m) select { case <-doneCh: assert.Equal(t, newM, m) assert.Equal(t, w.Mesh(), newM) break case <-time.After(time.Second * 5):
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 3K bytes - Viewed (0) -
test/fixedbugs/issue28390.go
package main import "fmt" type A struct { K int S string M map[string]string } func newA(k int, s string) (a A) { a.K = k a.S = s a.M = make(map[string]string) a.M[s] = s return } func proxy() (x int, a A) { return 1, newA(2, "3") } func consume(x int, a interface{}) { fmt.Println(x) fmt.Println(a) // used to panic here } func main() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Oct 28 18:22:36 UTC 2018 - 648 bytes - Viewed (0) -
test/fixedbugs/issue59680.go
// license that can be found in the LICENSE file. package main import ( "sync" "time" ) type B struct { pid int f func() (uint64, error) wg sync.WaitGroup v uint64 } func newB(pid int) *B { return &B{ pid: pid, } } //go:noinline func Sq(i int) uint64 { S++ return uint64(i * i) } type RO func(*B) var ROSL = []RO{ Bad(), } func Bad() RO {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 05 21:04:38 UTC 2023 - 1.3K bytes - Viewed (0)