Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 73 for chan2 (0.06 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness_test.go

    		stopCh := make(chan struct{})
    		controller, controllerCompletedCh := startAPFController(t, stopCh, apfConfiguration, serverConcurrency, plName, plConcurrency)
    
    		headerMatcher := headerMatcher{}
    		rquestTimesOutPath := "/request/time-out-as-designed"
    		reqHandlerCompletedCh, callerRoundTripDoneCh := make(chan struct{}), make(chan struct{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  2. src/runtime/pprof/pprof_test.go

    	}
    }
    
    func func1(c chan int) { <-c }
    func func2(c chan int) { <-c }
    func func3(c chan int) { <-c }
    func func4(c chan int) { <-c }
    
    func TestGoroutineCounts(t *testing.T) {
    	// Setting GOMAXPROCS to 1 ensures we can force all goroutines to the
    	// desired blocking point.
    	defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(1))
    
    	c := make(chan int)
    	for i := 0; i < 100; i++ {
    		switch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  3. pkg/controller/replicaset/replica_set_test.go

    	fakePodControl := controller.FakePodControl{}
    	stopCh := make(chan struct{})
    	defer close(stopCh)
    	manager, informers := testNewReplicaSetControllerFromClient(t, client, stopCh, BurstReplicas)
    	manager.podControl = &fakePodControl
    
    	received := make(chan string)
    	manager.syncHandler = func(ctx context.Context, key string) error {
    		received <- key
    		return nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
  4. plugin/pkg/admission/resourcequota/admission_test.go

    	return createHandlerWithConfig(kubeClient, informerFactory, nil, stopCh)
    }
    
    func createHandlerWithConfig(kubeClient kubernetes.Interface, informerFactory informers.SharedInformerFactory, config *resourcequotaapi.Configuration, stopCh chan struct{}) (*resourcequota.QuotaAdmission, error) {
    	if config == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 84.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/api_test.go

    		},
    		{`package t3; type C[T any] interface{chan<- T}; func f[T any, P C[T], Q C[[]*P]]() []T { return nil }; func _() { _ = f[int] }`,
    			[]testInst{
    				{`C`, []string{`T`}, `interface{chan<- T}`},
    				{`C`, []string{`[]*P`}, `interface{chan<- []*P}`},
    				{`f`, []string{`int`, `chan<- int`, `chan<- []*chan<- int`}, `func() []int`},
    			},
    		},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  6. src/go/types/api_test.go

    		},
    		{`package t3; type C[T any] interface{chan<- T}; func f[T any, P C[T], Q C[[]*P]]() []T { return nil }; func _() { _ = f[int] }`,
    			[]testInst{
    				{`C`, []string{`T`}, `interface{chan<- T}`},
    				{`C`, []string{`[]*P`}, `interface{chan<- []*P}`},
    				{`f`, []string{`int`, `chan<- int`, `chan<- []*chan<- int`}, `func() []int`},
    			},
    		},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  7. src/net/http/transport.go

    	pconn = &persistConn{
    		t:             t,
    		cacheKey:      cm.key(),
    		reqch:         make(chan requestAndChan, 1),
    		writech:       make(chan writeRequest, 1),
    		closech:       make(chan struct{}),
    		writeErrCh:    make(chan error, 1),
    		writeLoopDone: make(chan struct{}),
    	}
    	trace := httptrace.ContextClientTrace(ctx)
    	wrapErr := func(err error) error {
    		if cm.proxyURL != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  8. src/reflect/type.go

    	switch dir {
    	default:
    		panic("reflect.ChanOf: invalid dir")
    	case SendDir:
    		s = "chan<- " + stringFor(typ)
    	case RecvDir:
    		s = "<-chan " + stringFor(typ)
    	case BothDir:
    		typeStr := stringFor(typ)
    		if typeStr[0] == '<' {
    			// typ is recv chan, need parentheses as "<-" associates with leftmost
    			// chan possible, see:
    			// * https://golang.org/ref/spec#Channel_types
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  9. src/crypto/tls/handshake_client_test.go

    // when certain messages are seen.
    type opensslOutputSink struct {
    	handshakeComplete chan struct{}
    	readKeyUpdate     chan struct{}
    	all               []byte
    	line              []byte
    }
    
    func newOpensslOutputSink() *opensslOutputSink {
    	return &opensslOutputSink{make(chan struct{}), make(chan struct{}), nil, nil}
    }
    
    // opensslEndOfHandshake is a message that the “openssl s_server” tool will
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  10. pkg/controller/history/controller_history_test.go

    	}
    	testFn := func(test *testcase, t *testing.T) {
    		client := fake.NewSimpleClientset()
    		informerFactory := informers.NewSharedInformerFactory(client, controller.NoResyncPeriodFunc())
    
    		stop := make(chan struct{})
    		defer close(stop)
    		informerFactory.Start(stop)
    		informer := informerFactory.Apps().V1().ControllerRevisions()
    		informerFactory.WaitForCacheSync(stop)
    		for i := range test.revisions {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 13:31:28 UTC 2023
    - 49.1K bytes
    - Viewed (0)
Back to top