Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for nextch (0.13 sec)

  1. pkg/kube/krt/fetch.go

    	"istio.io/istio/pkg/slices"
    )
    
    func FetchOne[T any](ctx HandlerContext, c Collection[T], opts ...FetchOption) *T {
    	res := Fetch[T](ctx, c, opts...)
    	switch len(res) {
    	case 0:
    		return nil
    	case 1:
    		return &res[0]
    	default:
    		panic("FetchOne found for more than 1 item")
    	}
    }
    
    func Fetch[T any](ctx HandlerContext, cc Collection[T], opts ...FetchOption) []T {
    	h := ctx.(registerDependency)
    	c := cc.(internalCollection[T])
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/artifact/ResolvedArtifactsGraphVisitor.java

            ) {
                int id = nextId++;
                return new ArtifactsForNode(id, new VariantResolvingArtifactSet(variantResolver, component, variant, dependency, graphVariantSelector, consumerSchema));
            }
    
            return artifactsByNodeId.computeIfAbsent(toNode.getNodeId(), (LongFunction<ArtifactsForNode>) value -> {
                int id = nextId++;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 02:21:08 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/model/ComponentIdGenerator.java

    @ServiceScope(Scope.BuildTree.class)
    public class ComponentIdGenerator {
        private final AtomicLong nextId = new AtomicLong();
    
        public long nextComponentId() {
            return nextId.getAndIncrement();
        }
    
        public long nextVariantId() {
            return nextId.getAndIncrement();
        }
    
        public long nextGraphNodeId() {
            return nextId.getAndIncrement();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  4. src/internal/coverage/cformat/format.go

    	// maps function to index in slice above (index acts as function ID)
    	funcTable map[fnfile]uint32
    
    	// A table storing coverage counts for each coverable unit.
    	unitTable map[extcu]uint32
    }
    
    // extcu encapsulates a coverable unit within some function.
    type extcu struct {
    	fnfid uint32 // index into p.funcs slice
    	coverage.CoverableUnit
    }
    
    // fnfile is a function-name/file-name tuple.
    type fnfile struct {
    	file  string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  5. src/go/types/typeparam.go

    }
    
    // check may be nil
    func (check *Checker) newTypeParam(obj *TypeName, constraint Type) *TypeParam {
    	// Always increment lastID, even if it is not used.
    	id := nextID()
    	if check != nil {
    		check.nextID++
    		id = check.nextID
    	}
    	typ := &TypeParam{check: check, id: id, obj: obj, index: -1, bound: constraint}
    	if obj.typ == nil {
    		obj.typ = typ
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/typeparam.go

    }
    
    // check may be nil
    func (check *Checker) newTypeParam(obj *TypeName, constraint Type) *TypeParam {
    	// Always increment lastID, even if it is not used.
    	id := nextID()
    	if check != nil {
    		check.nextID++
    		id = check.nextID
    	}
    	typ := &TypeParam{check: check, id: id, obj: obj, index: -1, bound: constraint}
    	if obj.typ == nil {
    		obj.typ = typ
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  7. src/go/types/context.go

    }
    
    // getID returns a unique ID for the type t.
    func (ctxt *Context) getID(t Type) int {
    	ctxt.mu.Lock()
    	defer ctxt.mu.Unlock()
    	id, ok := ctxt.originIDs[t]
    	if !ok {
    		id = ctxt.nextID
    		ctxt.originIDs[t] = id
    		ctxt.nextID++
    	}
    	return id
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/TestUtilJvm.kt

      }
    
      @JvmStatic
      fun threadFactory(name: String): ThreadFactory {
        return object : ThreadFactory {
          private var nextId = 1
    
          override fun newThread(runnable: Runnable): Thread {
            return Thread(runnable, "$name-${nextId++}")
          }
        }
      }
    }
    
    fun getEnv(name: String) = System.getenv(name)
    
    val SYSTEM_FILE_SYSTEM = FileSystem.SYSTEM
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/resolver/AbstractResourcePattern.java

                return true;
            }
    
            int optionalOpen = 0;
            for (int i = 0; i < tokenIndex; i++) {
                char nextChar = patternString.charAt(i);
                if (nextChar == '(') {
                    optionalOpen++;
                } else if (nextChar == ')') {
                    optionalOpen = Math.max(0, optionalOpen - 1);
                }
            }
            return optionalOpen > 0;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 09 01:09:38 UTC 2024
    - 7K bytes
    - Viewed (0)
  10. platforms/core-runtime/build-operations/src/main/java/org/gradle/internal/operations/BuildOperationIdFactory.java

    /**
     * Provides an id unique within the global scope a build VM.
     */
    @ServiceScope(Scope.Global.class)
    public interface BuildOperationIdFactory {
    
        /**
         * @return the next unique ID
         */
        long nextId();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 982 bytes
    - Viewed (0)
Back to top