Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for maybePrepareModel (0.3 sec)

  1. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/ConfigurationCacheAwareBuildTreeModelCreator.kt

        private val delegate: BuildTreeModelCreator,
        private val cache: BuildTreeConfigurationCache
    ) : BuildTreeModelCreator {
        override fun <T : Any> beforeTasks(action: BuildTreeModelAction<out T>) {
            cache.maybePrepareModel {
                delegate.beforeTasks(action)
            }
        }
    
        override fun <T : Any?> fromBuildModel(action: BuildTreeModelAction<out T>): T? {
            return cache.loadOrCreateModel {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/BuildTreeConfigurationCache.kt

         * Prepares to load or create a model. Does nothing if the cached model is available or else prepares to capture
         * configuration fingerprints and validation problems and then runs the given function.
         */
        fun maybePrepareModel(action: () -> Unit)
    
        /**
         * Loads the cached model, if available, or else runs the given function to create it and then writes the result to the cache.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/DefaultConfigurationCache.kt

            return loadWorkGraph(graph, graphBuilder, true)
        }
    
        override fun maybePrepareModel(action: () -> Unit) {
            if (isLoaded) {
                return
            }
            runWorkThatContributesToCacheEntry {
                action()
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 24.3K bytes
    - Viewed (0)
Back to top