Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for CH (0.18 sec)

  1. internal/dsync/drwmutex.go

    		case <-ctx.Done():
    			// Refreshing is canceled
    			return false, ctx.Err()
    		}
    		if done {
    			break
    		}
    	}
    
    	// We may have some unused results in ch, release them async.
    	go func() {
    		wg.Wait()
    		xioutil.SafeClose(ch)
    		for range ch {
    		}
    	}()
    
    	noQuorum := lockNotFound > len(restClnts)-quorum
    	return noQuorum, nil
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  2. cmd/data-usage-cache.go

    }
    
    // Create a clone of the entry.
    func (e dataUsageEntry) clone() dataUsageEntry {
    	// We operate on a copy from the receiver.
    	if e.Children != nil {
    		ch := make(dataUsageHashMap, len(e.Children))
    		for k, v := range e.Children {
    			ch[k] = v
    		}
    		e.Children = ch
    	}
    	if e.ReplicationStats != nil {
    		// Clone ReplicationStats
    		e.ReplicationStats = e.ReplicationStats.clone()
    	}
    	if e.AllTierStats != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
  3. cmd/notification.go

    					if !ok {
    						return
    					}
    					select {
    					case ch <- m:
    					case <-ctx.Done():
    						return
    					}
    				case <-ctx.Done():
    					return
    				}
    			}
    		}(ctx, peerChannels[index], &wg)
    	}
    	go func(wg *sync.WaitGroup, ch chan MetricV2) {
    		wg.Wait()
    		xioutil.SafeClose(ch)
    	}(&wg, ch)
    	return ch
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 12 18:13:36 GMT 2024
    - 44.5K bytes
    - Viewed (0)
  4. istioctl/pkg/admin/istiodconfig.go

    	}
    	return nil
    }
    
    func (c *ControlzClient) PutScopes(scopes []*ScopeInfo) error {
    	ch := make(chan struct {
    		err       error
    		scopeName string
    	}, len(scopes))
    	var wg sync.WaitGroup
    	for _, scope := range scopes {
    		wg.Add(1)
    		go func(si *ScopeInfo) {
    			defer wg.Done()
    			err := c.PutScope(si)
    			ch <- struct {
    				err       error
    				scopeName string
    			}{err: err, scopeName: si.Name}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  5. internal/s3select/simdj/reader.go

    	r.readerWg.Add(1)
    	go r.startReader()
    	return &r
    }
    
    // NewElementReader - creates new JSON reader using readCloser.
    func NewElementReader(ch chan simdjson.Object, err *error, args *json.ReaderArgs) *Reader {
    	return &Reader{
    		args:       args,
    		decoded:    ch,
    		err:        err,
    		readCloser: nil,
    	}
    }
    
    // safeCloser will wrap a Reader as a ReadCloser.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue May 30 17:02:22 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  6. cmd/service.go

    	// Close when we reach 0
    	globalServiceFreezeCnt--
    	if globalServiceFreezeCnt <= 0 {
    		// Set to a nil channel.
    		var _ch chan struct{}
    		if val := globalServiceFreeze.Swap(_ch); val != nil {
    			if ch, ok := val.(chan struct{}); ok && ch != nil {
    				// Close previous non-nil channel.
    				xioutil.SafeClose(ch)
    			}
    		}
    		globalServiceFreezeCnt = 0 // Don't risk going negative.
    	}
    	globalServiceFreezeMu.Unlock()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Feb 28 07:02:14 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  7. cmd/xl-storage-format-v2_test.go

    			vers[i], vers[j] = vers[j], vers[i]
    		})
    		var entries []chan metaCacheEntry
    		for _, v := range vers {
    			v.cached = nil
    			ch := make(chan metaCacheEntry, 1)
    			ch <- v
    			close(ch)
    			entries = append(entries, ch)
    		}
    		out := make(chan metaCacheEntry, 1)
    		err := mergeEntryChannels(context.Background(), entries, out, 1)
    		if err != nil {
    			t.Fatal(err)
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 08 17:50:48 GMT 2024
    - 36.4K bytes
    - Viewed (0)
  8. internal/grid/grid.go

    // The context both allows returning errors on writes and to ensure that
    // this isn't abandoned if the channel is no longer being read from.
    func WriterToChannel(ctx context.Context, ch chan<- []byte) io.Writer {
    	return &writerWrapper{ch: ch, ctx: ctx}
    }
    
    // bytesOrLength returns small (<=100b) byte slices as string, otherwise length.
    func bytesOrLength(b []byte) string {
    	if len(b) > 100 {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Apr 02 15:56:18 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/lex/tokenizer.go

    		line: 1,
    		file: file,
    	}
    }
    
    // We want center dot (·) and division slash (∕) to work as identifier characters.
    func isIdentRune(ch rune, i int) bool {
    	if unicode.IsLetter(ch) {
    		return true
    	}
    	switch ch {
    	case '_': // Underscore; traditional.
    		return true
    	case '\u00B7': // Represents the period in runtime.exit. U+00B7 '·' middle dot
    		return true
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Aug 04 20:35:21 GMT 2022
    - 3K bytes
    - Viewed (0)
  10. cmd/peer-rest-client.go

    	if err != nil {
    		return nil, err
    	}
    	ch := make(chan MetricV2)
    	go func(ch chan<- MetricV2) {
    		defer close(ch)
    		for _, m := range resp.Value() {
    			if m == nil {
    				continue
    			}
    			select {
    			case <-ctx.Done():
    				return
    			case ch <- *m:
    			}
    		}
    	}(ch)
    	return ch, nil
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.8K bytes
    - Viewed (0)
Back to top