Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 414 for pselect (0.15 sec)

  1. cmd/notification.go

    			}
    			continue
    		}
    		wg.Add(1)
    		go func(ctx context.Context, peerChannel <-chan MetricV2, wg *sync.WaitGroup) {
    			defer wg.Done()
    			for {
    				select {
    				case m, ok := <-peerChannel:
    					if !ok {
    						return
    					}
    					select {
    					case ch <- m:
    					case <-ctx.Done():
    						return
    					}
    				case <-ctx.Done():
    					return
    				}
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 44.9K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/docs/userguide/dep-man/03-controlling-transitive-dependencies/component_metadata_rules.adoc

    Specifically, `latest.someStatus` will resolve to the highest module version that has status `someStatus` or a more mature status.
    For example, `latest.integration` will select the highest module version regardless of its status (because `integration` is the least mature status as explained below), whereas `latest.release` will select the highest module version with status `release`.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:10:53 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/model/LocalComponentDependencyMetadataTest.groovy

                    def distinguishingValues = distinguisher == 'flavor' ? "\n  - Value: 'paid' selects variant: 'bar'\n  - Value: 'free' selects variant: 'foo'" : "\n  - Value: 'bar' selects variant: 'bar'\n  - Value: 'foo' selects variant: 'foo'"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:10:53 UTC 2024
    - 25.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/cacher/cache_watcher_test.go

    		for j, event := range testCase.expected {
    			e := <-ch
    			if !reflect.DeepEqual(event, e) {
    				t.Errorf("%d: unexpected event %d: %s", i, j, cmp.Diff(event, e))
    				break TestCase
    			}
    		}
    		select {
    		case obj, ok := <-ch:
    			t.Errorf("%d: unexpected excess event: %#v %t", i, obj, ok)
    			break TestCase
    		default:
    		}
    		w.setDrainInputBufferLocked(false)
    		w.stopLocked()
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  5. cmd/metacache-set.go

    				// Do not return io.EOF
    				if resCh != nil {
    					resErr = nil
    					select {
    					case resCh <- results:
    					case <-ctx.Done():
    					}
    					resCh = nil
    					returned = true
    				}
    				continue
    			}
    			results.o = append(results.o, entry)
    		}
    		if resCh != nil {
    			resErr = io.EOF
    			select {
    			case <-ctx.Done():
    				// Nobody wants it.
    			case resCh <- results:
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 22:18:44 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  6. internal/dsync/drwmutex.go

    	tolerance = len(restClnts) - quorum
    	attempt := uint(0)
    
    	for {
    		select {
    		case <-ctx.Done():
    			return false
    		default:
    			// Try to acquire the lock.
    			if locked = lock(ctx, dm.clnt, &locks, id, source, isReadLock, tolerance, quorum, dm.Names...); locked {
    				dm.m.Lock()
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  7. security/pkg/nodeagent/sds/sdsservice.go

    		b := backoff.NewExponentialBackOff(backoff.DefaultOption())
    		// context for both timeout and channel, whichever stops first, the context will be done
    		ctx, cancel := context.WithCancel(context.Background())
    		go func() {
    			select {
    			case <-ret.stop:
    				cancel()
    			case <-ctx.Done():
    			}
    		}()
    		defer cancel()
    		_ = b.RetryWithContext(ctx, func() error {
    			_, err := st.GenerateSecret(security.WorkloadKeyCertResourceName)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat May 25 00:20:04 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/kube/controller/multicluster.go

    				serviceentry.WithClusterID(cluster.ID),
    				serviceentry.WithNetworkIDCb(kubeRegistry.Network))
    			// Services can select WorkloadEntry from the same cluster. We only duplicate the Service to configure kube-dns.
    			kubeController.workloadEntryController.AppendWorkloadHandler(kubeRegistry.WorkloadInstanceHandler)
    			// ServiceEntry selects WorkloadEntry from remote cluster
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  9. cmd/handler-api.go

    		if r.Header.Get(globalObjectPerfUserMetadata) == "" {
    			if val := globalServiceFreeze.Load(); val != nil {
    				if unlock, ok := val.(chan struct{}); ok && unlock != nil {
    					// Wait until unfrozen.
    					select {
    					case <-unlock:
    					case <-r.Context().Done():
    						// if client canceled we don't need to wait here forever.
    						return
    					}
    				}
    			}
    		}
    
    		globalHTTPStats.addRequestsInQueue(1)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 12 08:13:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go

    	//  	switch a /* ERROR cannot switch on a */ {
    	//  	}
    	//  }
    	InvalidExprSwitch
    
    	/* control flow > select */
    
    	// InvalidSelectCase occurs when a select case is not a channel send or
    	// receive.
    	//
    	// Example:
    	//  func checkChan(c <-chan int) bool {
    	//  	select {
    	//  	case c:
    	//  		return true
    	//  	default:
    	//  		return false
    	//  	}
    	//  }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 34K bytes
    - Viewed (0)
Back to top