Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for executeDeferred (0.28 sec)

  1. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/IdentityCacheStepTest.groovy

            def delegateResult = Mock(WorkspaceResult)
            def originMetadata = Stub(OriginMetadata) {
                buildInvocationId >> "123245"
            }
    
            def execution = step.executeDeferred(work, context, cache)
    
            when:
            def cacheResult = execution.completeAndGet()
    
            then:
            cacheResult.get() == delegateOutput
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 08 16:13:07 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/impl/DefaultExecutionEngine.java

                    return executeStep.execute(work, createExecutionRequestContext());
                }
    
                @Override
                public <T> Deferrable<Try<T>> executeDeferred(Cache<Identity, IdentityCacheResult<T>> cache) {
                    return executeStep.executeDeferred(work, createExecutionRequestContext(), cache);
                }
            };
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 08 16:13:07 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/IdentifyStep.java

            return delegate.execute(work, createIdentityContext(work, context));
        }
    
        @Override
        public <T> Deferrable<Try<T>> executeDeferred(UnitOfWork work, C context, Cache<Identity, IdentityCacheResult<T>> cache) {
            return delegate.executeDeferred(work, createIdentityContext(work, context), cache);
        }
    
        @Nonnull
        private IdentityContext createIdentityContext(UnitOfWork work, C context) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:36:34 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/DeferredExecutionAwareStep.java

    import org.gradle.internal.execution.UnitOfWork.Identity;
    
    public interface DeferredExecutionAwareStep<C extends Context, R extends Result> extends Step<C, R> {
        <T> Deferrable<Try<T>> executeDeferred(UnitOfWork work, C context, Cache<Identity, IdentityCacheResult<T>> cache);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 08 16:13:07 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  5. platforms/core-execution/execution/src/integTest/groovy/org/gradle/internal/execution/IncrementalExecutionIntegrationTest.groovy

            def cache = new ManualEvictionInMemoryCache<UnitOfWork.Identity, Try<Object>>()
    
            when:
            def executedResult = executeDeferred(work, cache)
    
            then:
            executedResult == "deferred"
    
            when:
            def cachedResult = executeDeferred(work, cache)
    
            then:
            cachedResult == "cached"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:36:34 UTC 2024
    - 23.7K bytes
    - Viewed (0)
  6. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/ExecutionEngine.java

             * The work is looked up by its {@link UnitOfWork.Identity identity} in the given cache.
             */
            <T> Deferrable<Try<T>> executeDeferred(Cache<Identity, IdentityCacheResult<T>> cache);
        }
    
        interface Result {
            Try<Execution> getExecution();
    
            CachingState getCachingState();
    
            /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 23:08:17 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/IdentityCacheStep.java

        }
    
        @Override
        public R execute(UnitOfWork work, C context) {
            return delegate.execute(work, context);
        }
    
        @Override
        public <T> Deferrable<Try<T>> executeDeferred(UnitOfWork work, C context, Cache<Identity, IdentityCacheResult<T>> cache) {
            Identity identity = context.getIdentity();
            IdentityCacheResult<T> cacheResult = cache.getIfPresent(identity);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 08 16:30:23 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/transform/DefaultTransformInvocationFactory.java

                        cachingDisabledByProperty
                    );
                }
            }
            return effectiveEngine.createRequest(execution)
                .executeDeferred(identityCache)
                .map(result -> result
                    .map(successfulResult -> successfulResult.resolveForInputArtifact(inputArtifact))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 16:14:33 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top