Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 67 for cancellationToken (0.3 sec)

  1. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/loader/SynchronizedToolingImplementationLoader.java

            if (lock.tryLock()) {
                try {
                    return delegate.create(distribution, progressLoggerFactory, progressListener, connectionParameters, cancellationToken);
                } finally {
                    lock.unlock();
                }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/DistributionFactory.java

                if (installedDistribution == null) {
                    final DistributionInstaller installer = new DistributionInstaller(progressLoggerFactory, progressListener, clock);
                    File installDir;
                    try {
                        cancellationToken.addCallback(new Runnable() {
                            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:58:56 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/loader/DefaultToolingImplementationLoader.java

            LOGGER.debug("Using tooling provider from {}", distribution.getDisplayName());
            ClassLoader serviceClassLoader = createImplementationClassLoader(distribution, progressLoggerFactory, progressListener, connectionParameters, cancellationToken);
            ServiceLocator serviceLocator = new DefaultServiceLocator(serviceClassLoader);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/configuration/project/LifecycleProjectEvaluator.java

        private final BuildCancellationToken cancellationToken;
    
        public LifecycleProjectEvaluator(BuildOperationRunner buildOperationRunner, ProjectEvaluator delegate, BuildCancellationToken cancellationToken) {
            this.buildOperationRunner = buildOperationRunner;
            this.delegate = delegate;
            this.cancellationToken = cancellationToken;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/ConfigurableLauncher.java

        /**
         * {@inheritDoc}
         * @since 2.3
         */
        @Override
        T withCancellationToken(CancellationToken cancellationToken);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/AbstractLongRunningOperation.java

            return getThis();
        }
    
        @Override
        public T withCancellationToken(CancellationToken cancellationToken) {
            operationParamsBuilder.setCancellationToken(Preconditions.checkNotNull(cancellationToken));
            return getThis();
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/connection/CancellableConsumerActionExecutor.java

        }
    
        @Override
        public <T> T run(ConsumerAction<T> action) throws UnsupportedOperationException, IllegalStateException {
            BuildCancellationToken cancellationToken = action.getParameters().getCancellationToken();
            if (cancellationToken.isCancellationRequested()) {
                throw new BuildCancelledException("Build cancelled");
            }
            return delegate.run(action);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/client/DaemonClientTest.groovy

            0 * _
        }
    
        def "fails with an exception when build is cancelled and daemon is forcefully stopped"() {
            def cancellationToken = Mock(BuildCancellationToken)
            def buildRequestContext = Stub(ClientBuildRequestContext) {
                getCancellationToken() >> cancellationToken
            }
    
            when:
            def result = client.execute(Stub(BuildAction), Stub(BuildActionParameters), buildRequestContext)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:54:56 UTC 2024
    - 10K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/protocol/InternalCancellableConnection.java

         * <p>Provider compatibility: This method is implemented by all provider versions from 2.1-rc-1.</p>
         *
         * @param modelIdentifier The identifier of the model to build.
         * @param cancellationToken The token to propagate cancellation.
         * @throws BuildExceptionVersion1 On build failure.
         * @throws InternalUnsupportedModelException When the requested model is not supported.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api-builders/src/test/groovy/org/gradle/tooling/internal/provider/runner/DefaultBuildControllerTest.groovy

    import org.gradle.util.Path
    import spock.lang.Specification
    
    import java.util.function.Consumer
    import java.util.function.Supplier
    
    class DefaultBuildControllerTest extends Specification {
        def cancellationToken = Stub(BuildCancellationToken)
        def modelId = Stub(ModelIdentifier) {
            getName() >> 'some.model'
        }
        def modelScope = Mock(ToolingModelScope)
        def buildStateRegistry = Mock(BuildStateRegistry)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 08:56:30 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top