Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 114 for Closest (0.13 sec)

  1. src/container/heap/example_pq_test.go

    type PriorityQueue []*Item
    
    func (pq PriorityQueue) Len() int { return len(pq) }
    
    func (pq PriorityQueue) Less(i, j int) bool {
    	// We want Pop to give us the highest, not lowest, priority so we use greater than here.
    	return pq[i].priority > pq[j].priority
    }
    
    func (pq PriorityQueue) Swap(i, j int) {
    	pq[i], pq[j] = pq[j], pq[i]
    	pq[i].index = i
    	pq[j].index = j
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:27:36 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/PersistentCache.java

         */
        <K, V> IndexedCache<K, V> createIndexedCache(String name, Class<K> keyType, Serializer<V> valueSerializer);
    
        <K, V> boolean indexedCacheExists(IndexedCacheParameters<K, V> parameters);
    
        /**
         * Closes this cache, blocking until all operations are complete.
         */
        @Override
        void close();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 19 07:59:23 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultCacheFactoryTest.groovy

            then:
            ref1.reference.cache.is(ref2.reference.cache)
    
            and:
            1 * opened.accept(_)
            0 * opened._
    
            cleanup:
            factory.close()
        }
    
        void "closes cache instance when factory is closed"() {
            def implementation
    
            when:
            factory.open(tmpDir.testDirectory, null, [prop: 'value'], mode(Exclusive), null, null)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/model/ModuleSource.java

     * of module sources:
     *
     * <ul>
     *     <li>sources which can be reconstructed from the caches, for example, the repository source</li>
     *     <li>sources which can't be reconstructed because the cache format loses information, for example a descriptor converted to binary</li>
     * </ul>
     *
     * The 2d kind, sources which must be stored into the metadata cache, have to implement the {@link PersistentModuleSource}
     * interface instead.
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  5. platforms/jvm/language-groovy/src/testFixtures/groovy/org/gradle/testing/fixture/GroovyCoverage.groovy

        static final Set<String> SUPPORTS_PARAMETERS
        static final Set<String> SUPPORTS_DISABLING_AST_TRANSFORMATIONS
        static final Set<String> SINCE_3_0
    
        /**
         * The lowest working Groovy 3 version for the current JDK.
         */
        static final String MINIMAL_GROOVY_3
    
        /**
         * The current Groovy version if stable, otherwise the latest stable version before the current version.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/ObjectConnectionBuilder.java

         * This may happen because the peer has signalled that it has finished sending messages, or closes the connection, or crashes. It may also happen when
         * this side of the connection is closed using {@link ObjectConnection#stop()}.
         * </p>
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  7. platforms/software/resources-http/src/test/groovy/org/gradle/internal/resource/transport/http/HttpResponseResourceTest.groovy

            value = "Some message"
        }
    
        def "returns null when accessing value of a non existing header"() {
            expect:
            resource().getHeaderValue("X-No-Such-Header") == null
        }
    
        def "close closes the response"() {
            given:
            def mockedHttpResponse = mockedHttpResponse(response)
    
            when:
            resource().close()
    
            then:
            interaction {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/BuildTreeConfigurationCache.kt

         */
        fun loadOrCreateProjectMetadata(identityPath: Path, creator: () -> LocalComponentGraphResolveState): LocalComponentGraphResolveState
    
        /**
         * Flushes any remaining state to the cache and closes any resources
         */
        fun finalizeCacheEntry()
    
        // This is a temporary property to allow migration from a root build scoped cache to a build tree scoped cache
        val isLoaded: Boolean
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/filters/wrap.go

    			// If ServeHTTP panics, the server (the caller of ServeHTTP) assumes
    			// that the effect of the panic was isolated to the active request.
    			// It recovers the panic, logs a stack trace to the server error log,
    			// and either closes the network connection or sends an HTTP/2
    			// RST_STREAM, depending on the HTTP protocol. To abort a handler so
    			// the client sees an interrupted response but the server doesn't log
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. platforms/software/resources-s3/src/main/java/org/gradle/internal/resource/transport/aws/s3/S3ResourceConnector.java

                LOGGER.debug("Exception while consuming empty object content from metadata request", e);
            } finally {
                // This also closes objectContent, no need to close it explicitly.
                IoActions.closeQuietly(s3Object);
            }
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 4.9K bytes
    - Viewed (0)
Back to top