Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for watchCtx (0.25 sec)

  1. src/os/exec/exec.go

    		resultc := make(chan ctxResult)
    		c.ctxResult = resultc
    		go c.watchCtx(resultc)
    	}
    
    	return nil
    }
    
    // watchCtx watches c.ctx until it is able to send a result to resultc.
    //
    // If c.ctx is done before a result can be sent, watchCtx calls c.Cancel,
    // and/or kills cmd.Process it after c.WaitDelay has elapsed.
    //
    // watchCtx manipulates c.goroutineErr, so its result must be received before
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness.go

    			h.fcIfc.Handle(handleCtx, digest, noteFn, estimateWork, queueNote, execute)
    		}()
    
    		select {
    		case <-shouldStartWatchCh:
    			watchCtx := utilflowcontrol.WithInitializationSignal(ctx, watchInitializationSignal)
    			watchReq = r.WithContext(watchCtx)
    			h.handler.ServeHTTP(w, watchReq)
    			// Protect from the situation when request will not reach storage layer
    			// and the initialization signal will not be send.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/testing/watcher_tests.go

    	key, storedObj := testPropagateStore(ctx, t, store, &example.Pod{ObjectMeta: metav1.ObjectMeta{Name: "foo", Namespace: "test-ns"}})
    
    	watchCtx, cancel := context.WithTimeout(ctx, wait.ForeverTestTimeout)
    	t.Cleanup(cancel)
    	w, err := store.Watch(watchCtx, key, storage.ListOptions{ResourceVersion: storedObj.ResourceVersion, Predicate: storage.Everything})
    	if err != nil {
    		t.Fatalf("Watch failed: %v", err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    		t.Errorf("Unexpected 429 error without ResilientWatchCacheInitialization feature for List")
    	}
    
    	watchCtx, watchCancel := context.WithTimeout(context.Background(), 250*time.Millisecond)
    	defer watchCancel()
    
    	_, err = cacher.Watch(watchCtx, "/pods/ns", opts)
    	if err != nil && apierrors.IsTooManyRequests(err) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
Back to top