Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for isCancellationRequested (0.3 sec)

  1. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/parameters/BuildCancellationTokenAdapter.java

        public BuildCancellationTokenAdapter(BuildCancellationToken cancellationToken) {
            this.cancellationToken = cancellationToken;
        }
    
        @Override
        public boolean isCancellationRequested() {
            return cancellationToken.isCancellationRequested();
        }
    
        @Override
        public boolean addCallback(Runnable cancellationHandler) {
            return cancellationToken.addCallback(cancellationHandler);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/main/java/org/gradle/tooling/internal/provider/InternalCancellationTokenAdapter.java

        public InternalCancellationTokenAdapter(InternalCancellationToken cancellationToken) {
            this.cancellationToken = cancellationToken;
        }
    
        @Override
        public boolean isCancellationRequested() {
            return cancellationToken.isCancellationRequested();
        }
    
        @Override
        public boolean addCallback(Runnable cancellationHandler) {
            return cancellationToken.addCallback(cancellationHandler);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/execution/plan/DefaultPlanExecutorTest.groovy

            then:
            result.failures.empty
    
            1 * workerLeaseService.currentWorkerLease >> workerLease
    
            then:
            1 * cancellationHandler.isCancellationRequested() >> false
            1 * workerLease.tryLock() >> true
            1 * workSource.executionState() >> WorkSource.State.MaybeWorkReadyToStart
            1 * workSource.selectNext() >> WorkSource.Selection.of(node)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/main/java/org/gradle/tooling/internal/provider/continuous/ContinuousBuildTriggerHandler.java

                cancellationArrived.countDown();
            };
            if (cancellationToken.isCancellationRequested()) {
                return;
            }
            try {
                cancellationToken.addCallback(cancellationHandler);
                notifier.run();
                changeOrCancellationArrived.await();
                while (!cancellationToken.isCancellationRequested()) {
                    Instant now = nowFromMonotonicClock();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/DefaultCancellationTokenSource.java

            }
    
            @Override
            public BuildCancellationToken getToken() {
                return token;
            }
    
            @Override
            public boolean isCancellationRequested() {
                return token.isCancellationRequested();
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/CancelExecutionStep.java

                cancellationToken.addCallback(interrupt);
                return delegate.execute(work, context);
            } finally {
                cancellationToken.removeCallback(interrupt);
                if (cancellationToken.isCancellationRequested()) {
                    Thread.interrupted();
                    throw new BuildCancelledException("Build cancelled while executing " + work.getDisplayName());
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:33 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/execution/TaskPathProjectEvaluator.java

            project.getOwner().ensureConfigured();
        }
    
        @Override
        public void configureFully(ProjectState projectState) {
            projectState.ensureConfigured();
            if (cancellationToken.isCancellationRequested()) {
                throw new BuildCancelledException();
            }
            projectState.ensureTasksDiscovered();
        }
    
        @Override
        public void configureHierarchy(ProjectInternal project) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jul 20 01:17:14 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/connection/CancellableConsumerActionExecutor.java

            BuildCancellationToken cancellationToken = action.getParameters().getCancellationToken();
            if (cancellationToken.isCancellationRequested()) {
                throw new BuildCancelledException("Build cancelled");
            }
            return delegate.run(action);
        }
    
        @Override
        public void disconnect() {
            delegate.disconnect();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  9. platforms/core-runtime/base-services/src/main/java/org/gradle/initialization/BuildCancellationToken.java

     */
    
    package org.gradle.initialization;
    
    /**
     * Propagates notification that the build should be cancelled.
     */
    public interface BuildCancellationToken {
    
        boolean isCancellationRequested();
    
        void cancel();
    
        /**
         * @return current state of cancellation request before callback was added.
         */
        boolean addCallback(Runnable cancellationHandler);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/protocol/InternalCancellationToken.java

    /**
     * Cancellation token passed from consumer to provider to propagate cancellation events.
     * @since 2.1-rc-1
     */
    public interface InternalCancellationToken {
        boolean isCancellationRequested();
    
        /**
         * Adds a callback that will be executed when cancel event is triggered.
         * It can be run synchronously if the token is already cancelled.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 13:57:30 UTC 2024
    - 1.4K bytes
    - Viewed (0)
Back to top