Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 115 for chain (0.05 sec)

  1. pkg/kubelet/pod_workers.go

    	// in channel communication. The function is invoked once each time a new worker
    	// goroutine starts.
    	workerChannelFn func(uid types.UID, in chan struct{}) (out <-chan struct{})
    
    	// The EventRecorder to use
    	recorder record.EventRecorder
    
    	// backOffPeriod is the duration to back off when there is a sync error.
    	backOffPeriod time.Duration
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 02 13:22:37 UTC 2024
    - 74.8K bytes
    - Viewed (0)
  2. src/net/http/client_test.go

    		t.Errorf("expected lastVia to have contained %d elements; got %d", e, g)
    	}
    
    	// Test that Request.Cancel is propagated between requests (Issue 14053)
    	creq, _ := NewRequest("HEAD", ts.URL, nil)
    	cancel := make(chan struct{})
    	creq.Cancel = cancel
    	if _, err := c.Do(creq); err != nil {
    		t.Fatal(err)
    	}
    	if lastReq == nil {
    		t.Fatal("didn't see redirect")
    	}
    	if lastReq.Cancel != cancel {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  3. src/net/http/httputil/reverseproxy_test.go

    	}
    	if !mf.flushed {
    		t.Errorf("response writer was not flushed")
    	}
    }
    
    func TestReverseProxyFlushIntervalHeaders(t *testing.T) {
    	const expected = "hi"
    	stopCh := make(chan struct{})
    	backend := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		w.Header().Add("MyHeader", expected)
    		w.WriteHeader(200)
    		w.(http.Flusher).Flush()
    		<-stopCh
    	}))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  4. src/sync/atomic/atomic_test.go

    func TestHammer32(t *testing.T) {
    	const p = 4
    	n := 100000
    	if testing.Short() {
    		n = 1000
    	}
    	defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(p))
    
    	for name, testf := range hammer32 {
    		c := make(chan int)
    		var val uint32
    		for i := 0; i < p; i++ {
    			go func() {
    				defer func() {
    					if err := recover(); err != nil {
    						t.Error(err.(string))
    					}
    					c <- 1
    				}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 71.4K bytes
    - Viewed (0)
  5. src/go/printer/nodes.go

    		p.print(token.RBRACK)
    		p.expr(x.Value)
    
    	case *ast.ChanType:
    		switch x.Dir {
    		case ast.SEND | ast.RECV:
    			p.print(token.CHAN)
    		case ast.RECV:
    			p.print(token.ARROW, token.CHAN) // x.Arrow and x.Pos() are the same
    		case ast.SEND:
    			p.print(token.CHAN)
    			p.setPos(x.Arrow)
    			p.print(token.ARROW)
    		}
    		p.print(blank)
    		p.expr(x.Value)
    
    	default:
    		panic("unreachable")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  6. src/runtime/mgc.go

    // It kicks off the background sweeper goroutine, the background
    // scavenger goroutine, and enables GC.
    func gcenable() {
    	// Kick off sweeping and scavenging.
    	c := make(chan int, 2)
    	go bgsweep(c)
    	go bgscavenge(c)
    	<-c
    	<-c
    	memstats.enablegc = true // now that runtime is initialized, GC is okay
    }
    
    // Garbage collector phase.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  7. src/cmd/dist/test.go

    	cmd   *exec.Cmd     // must write stdout/stderr to out
    	flush func()        // if non-nil, called after cmd.Run
    	start chan bool     // a true means to start, a false means to skip
    	out   bytes.Buffer  // combined stdout/stderr from cmd
    	err   error         // work result
    	end   chan struct{} // a value means cmd ended (or was skipped)
    }
    
    // printSkip prints a skip message for all of work.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
  8. pkg/controller/endpoint/endpoints_controller_test.go

    		Subsets:    expectedSubsets,
    	}
    
    	controller := &endpointController{}
    	blockDelete := make(chan struct{})
    	blockNextAction := make(chan struct{})
    	stopChan := make(chan struct{})
    	testServer := makeBlockingEndpointDeleteTestServer(t, controller, endpoint, blockDelete, blockNextAction, ns)
    	defer testServer.Close()
    
    	tCtx := ktesting.Init(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 87.7K bytes
    - Viewed (0)
  9. pkg/controller/job/job_controller.go

    // which the objects can actually be deleted.
    // Returns number of successfully deletions issued.
    func (jm *Controller) deleteActivePods(ctx context.Context, job *batch.Job, pods []*v1.Pod) (int32, error) {
    	errCh := make(chan error, len(pods))
    	successfulDeletes := int32(len(pods))
    	wg := sync.WaitGroup{}
    	wg.Add(len(pods))
    	for i := range pods {
    		go func(pod *v1.Pod) {
    			defer wg.Done()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  10. src/os/os_test.go

    			}
    		}
    	}
    	fd.Close()
    }
    
    // Test that Chdir+Getwd is program-wide.
    func TestProgWideChdir(t *testing.T) {
    	const N = 10
    	var wg sync.WaitGroup
    	hold := make(chan struct{})
    	done := make(chan struct{})
    
    	d := t.TempDir()
    	oldwd, err := Getwd()
    	if err != nil {
    		t.Fatalf("Getwd: %v", err)
    	}
    	defer func() {
    		if err := Chdir(oldwd); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
Back to top