Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for loadOrCreateValue (0.13 sec)

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

                } else {
                    updatedProjects.accept(path)
                }
            }
        }
    
        /**
         * Create or load value, with load-after-store semantics
         */
        fun loadOrCreateValue(key: K, creator: () -> V): V {
            val address = loadOrCreateAddress(key, creator)
            return readValue(key, address)
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/models/IntermediateModelController.kt

        fun <T> loadOrCreateIntermediateModel(identityPath: Path?, modelName: String, parameter: ToolingModelParameterCarrier?, creator: () -> T): T? {
            val key = ModelKey(identityPath, modelName, parameter?.hash)
            return loadOrCreateValue(key) {
                try {
                    val model = if (identityPath != null) {
                        cacheFingerprintController.runCollectingFingerprintForProject(identityPath, creator)
                    } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top