- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,624 for lazily (0.66 sec)
-
platforms/core-runtime/functional/src/main/java/org/gradle/internal/lazy/Lazy.java
consumer.accept(get()); } /** * Applies a function to the lazily computed value and returns its value * * @param function the value to apply to the lazily computed value * @param <V> the return type * @return the result of the function, applied on the lazily computed value */ default <V> V apply(Function<? super T, V> function) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:22:02 UTC 2023 - 3.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/helpers.go
if lazy.req != nil { return audit.GetAuditIDTruncated(lazy.req.Context()) } return "unknown" } // lazyVerb implements String() string and it will // lazily get normalized Verb type lazyVerb struct { req *http.Request } func (lazy *lazyVerb) String() string { if lazy.req == nil { return "unknown" } return metrics.NormalizedVerb(lazy.req) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Sep 03 15:25:35 UTC 2023 - 4.9K bytes - Viewed (0) -
pkg/lazy/lazy.go
res T err error done uint32 m sync.Mutex } var _ Lazy[any] = &lazyImpl[any]{} // New returns a new lazily computed value. The value is guaranteed to only be computed a single time. func New[T any](f func() (T, error)) Lazy[T] { return &lazyImpl[T]{getter: f} } // NewWithRetry returns a new lazily computed value. The value will be computed on each call until a // non-nil error is returned.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Aug 17 22:54:10 UTC 2022 - 2.2K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/api/Describable.java
* limitations under the License. */ package org.gradle.api; /** * Types can implement this interface when they provide a human-readable display name. * It is strongly encouraged to compute this display name lazily: computing a display name, * even if it's only a string concatenation, can take a significant amount of time during * configuration for something that would only be used, typically, in error messages. * * @since 3.4 */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 1.2K bytes - Viewed (0) -
analysis/analysis-api-standalone/analysis-api-standalone-base/src/org/jetbrains/kotlin/analysis/api/standalone/base/project/structure/KtStaticModuleDependentsProvider.kt
class KtStaticModuleDependentsProvider(private val modules: List<KtModule>) : KotlinModuleDependentsProviderBase() { private val directDependentsByKtModule: Map<KtModule, Set<KtModule>> by lazy { // Direct dependencies should be computed lazily, because the built-ins module will be reachable via module dependencies. Getting // the built-ins module relies on the built-ins session, which may depend on services that are registered after
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Mon Mar 18 21:14:36 UTC 2024 - 2.6K bytes - Viewed (0) -
platforms/software/reporting/src/test/groovy/org/gradle/api/reporting/ReportingExtensionTest.groovy
then: extension.baseDir == new File(project.file("newBuildDir"), ReportingExtension.DEFAULT_REPORTS_DIR_NAME) } def "reports dir can be changed lazily"() { given: def dir = "a" when: extension.baseDir = { dir } then: extension.baseDir == project.file("a") when: dir = "b"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 11 12:16:09 UTC 2023 - 2.4K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FileCollectionPropertyIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 17.3K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/symbols/KtFirPsiSymbol.kt
import org.jetbrains.kotlin.analysis.api.symbols.KaSymbolOrigin import org.jetbrains.kotlin.fir.symbols.FirBasedSymbol /** * A [KaFirSymbol] that is backed by some [PsiElement] and builds [firSymbol] lazily (by convention), allowing some properties to be * calculated without the need to build a [firSymbol]. */ internal interface KaFirPsiSymbol<P : PsiElement, out S : FirBasedSymbol<*>> : KaFirSymbol<S> { override val psi: P
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 881 bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/Striped.java
} /** * Creates a {@code Striped<Lock>} with lazily initialized, weakly referenced locks. Every lock is * reentrant. * * @param stripes the minimum number of stripes (locks) required * @return a new {@code Striped<Lock>} */ public static Striped<Lock> lazyWeakLock(int stripes) { return lazy(stripes, () -> new ReentrantLock(false)); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 10 20:55:18 UTC 2023 - 20.3K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/artifacts/ConfigurationPublications.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jan 08 17:57:43 UTC 2024 - 4.2K bytes - Viewed (0)