Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for selectFrom (0.08 sec)

  1. cmd/metacache-entries.go

    				case out <- v:
    				}
    			}
    		}
    	}
    
    	selectFrom := func(idx int) error {
    		select {
    		case <-ctxDone:
    			return ctx.Err()
    		case entry, ok := <-in[idx]:
    			if !ok {
    				top[idx] = nil
    				nDone++
    			} else {
    				top[idx] = &entry
    			}
    		}
    		return nil
    	}
    	// Populate all...
    	for i := range in {
    		if err := selectFrom(i); err != nil {
    			return err
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 24.1K bytes
    - Viewed (0)
Back to top