- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for ExecutionTimeValue (0.85 sec)
-
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultMapProperty.java
return new CollectingSupplier(newCollector); } @Override public ExecutionTimeValue<? extends Map<K, V>> calculateExecutionTimeValue() { List<ExecutionTimeValue<? extends Map<? extends K, ? extends V>>> execTimeValues = collectExecutionTimeValues(); ExecutionTimeValue<Map<K, V>> fixedOrMissing = fixedOrMissingValueOf(execTimeValues); return fixedOrMissing != null
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 05:33:15 UTC 2024 - 32.6K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/Collectors.java
} } private static <T> void visitValue(Action<? super ValueSupplier.ExecutionTimeValue<? extends Iterable<? extends T>>> visitor, ValueSupplier.ExecutionTimeValue<? extends T> value) { if (value.isMissing()) { visitor.execute(ValueSupplier.ExecutionTimeValue.missing()); } else if (value.hasFixedValue()) { // transform preserving side effects
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 24 13:15:09 UTC 2024 - 14.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractCollectionProperty.java
@Nonnull private List<ExecutionTimeValue<? extends Iterable<? extends T>>> collectExecutionTimeValues() { List<ExecutionTimeValue<? extends Iterable<? extends T>>> values = new ArrayList<>(); value.calculateExecutionTimeValue(values::add); return values; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 29.8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/ValueSupplier.java
public abstract ExecutionTimeValue<T> withChangingContent(); public abstract ExecutionTimeValue<T> withSideEffect(@Nullable SideEffect<? super T> sideEffect); public static <T> ExecutionTimeValue<T> missing() { return Cast.uncheckedCast(MISSING); } public static <T> ExecutionTimeValue<T> fixedValue(T value) { assert value != null;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Feb 09 20:31:29 UTC 2024 - 27.2K bytes - Viewed (0) -
platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/ProviderCodecs.kt
return decodeValue().toProvider() } suspend fun ReadContext.decodeValue(): ValueSupplier.ExecutionTimeValue<*> = when (readByte()) { 1.toByte() -> ValueSupplier.ExecutionTimeValue.missing<Any>() 2.toByte() -> ValueSupplier.ExecutionTimeValue.ofNullable(read()) // nullable because serialization may replace value with null, e.g. when using provider of Task 3.toByte() -> {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:30 UTC 2024 - 17.2K bytes - Viewed (0) -
platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/FileCollectionCodec.kt
} } suspend fun WriteContext.encodeContents(value: FileCollectionInternal) { val executionTimeValue = value.calculateExecutionTimeValue().getOrNull() if (executionTimeValue != null) { writeBoolean(true) write(executionTimeValue) } else { writeBoolean(false) encodeViaCollectingVisitor(value) } } private
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 9.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractProperty.java
@Override public ExecutionTimeValue<? extends T> calculateExecutionTimeValue() { try (EvaluationContext.ScopeContext context = openScope()) { ExecutionTimeValue<? extends T> value = calculateOwnExecutionTimeValue(context, this.value); if (getProducerTask() == null) { return value;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:54 UTC 2024 - 15.8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultValueSourceProviderFactory.java
return null; } @Override public ExecutionTimeValue<T> calculateExecutionTimeValue() { if (value.hasBeenObtained()) { return ExecutionTimeValue.ofNullable(value.obtain().get()); } else { return ExecutionTimeValue.changingValue(this); } } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 18 08:26:25 UTC 2024 - 14.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/ProviderInternal.java
* input providers that have a fixed value with that value, as above. * </p> * </li> * </ul> * * <p>See {@link org.gradle.api.internal.provider.ValueSupplier.ExecutionTimeValue}, which represents these states.</p> * * <p>The value itself might be "missing", which means there is no value available, or "broken", which means the calculation failed with some exception, or some object.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 26 14:58:23 UTC 2024 - 11.2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/ProviderSpec.groovy
when: def provider = parent.withSideEffect(sideEffect) def value = provider.calculateValue(ValueSupplier.ValueConsumer.IgnoreUnsafeRead) def executionTimeValue = provider.calculateExecutionTimeValue() then: 0 * _ // no side effects when values are not unpacked when: def unpackedValue = value.get() then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 26 06:53:07 UTC 2023 - 19.2K bytes - Viewed (0)