Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for isCancellationRequested (0.64 sec)

  1. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/CancellationToken.java

     *
     * @since 2.1
     */
    public interface CancellationToken {
        /**
         * Gets whether cancellation has been requested for this token.
         * @return Cancellation status.
         */
        boolean isCancellationRequested();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/main/java/org/gradle/tooling/internal/provider/continuous/ContinuousBuildActionExecutor.java

                            if (!operationToken.isCancellationRequested()) {
                                fileEventCollector.reportChanges(logger);
                            }
                        });
                    }
                } finally {
                    fileChangeListeners.removeListener(fileEventCollector);
                }
    
                if (cancellationToken.isCancellationRequested()) {
                    break;
                } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 17:41:07 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api-builders/src/main/java/org/gradle/tooling/internal/provider/runner/DefaultBuildController.java

            throws BuildExceptionVersion1, InternalUnsupportedModelException {
            assertCanQuery();
            if (cancellationToken.isCancellationRequested()) {
                throw new BuildCancelledException(String.format("Could not build '%s' model. Build cancelled.", modelIdentifier.getName()));
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 08:56:14 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. platforms/core-runtime/build-state/src/main/java/org/gradle/internal/buildprocess/execution/BuildSessionLifecycleBuildActionExecutor.java

                    } else {
                        return BuildActionResult.of(payloadSerializer.serialize(result.getClientResult()));
                    }
                }
                if (requestContext.getCancellationToken().isCancellationRequested()) {
                    return BuildActionResult.cancelled(payloadSerializer.serialize(result.getBuildFailure()));
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/connection/LazyConsumerActionExecutor.java

            } finally {
                stopped = true;
                lock.unlock();
            }
        }
    
        private void requestCancellation() {
            if (cancellationToken != null && !cancellationToken.isCancellationRequested()) {
                cancellationToken.cancel();
            }
        }
    
        private void sendStopWhenIdleMessageToDaemons() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/configuration/project/LifecycleProjectEvaluator.java

        }
    
        @Override
        public void evaluate(final ProjectInternal project, final ProjectStateInternal state) {
            if (state.isUnconfigured()) {
                if (cancellationToken.isCancellationRequested()) {
                    throw new BuildCancelledException();
                }
                buildOperationRunner.run(new EvaluateProject(project, state));
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  7. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/DaemonClient.java

            }
    
            if (result instanceof Failure) {
                Throwable failure = ((Failure) result).getValue();
                if (failure instanceof DaemonStoppedException && cancellationToken.isCancellationRequested()) {
                    return BuildActionResult.cancelled(new BuildCancelledException("Daemon was stopped to handle build cancel request.", failure));
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:54:56 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/execution/plan/DefaultPlanExecutor.java

                    selected = MutableReference.empty();
                    coordinationService.withStateLock(resourceLockState -> {
                        stats.finishWaitingForNextItem();
                        if (cancellationToken.isCancellationRequested()) {
                            queue.cancelExecution();
                        }
    
                        WorkSource.State state = queue.executionState();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 29.1K bytes
    - Viewed (0)
Back to top