Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for isCancellationRequested (0.31 sec)

  1. subprojects/core/src/main/java/org/gradle/initialization/DefaultBuildCancellationToken.java

        private final Object lock = new Object();
        private boolean cancelled;
        private List<Runnable> callbacks = new LinkedList<Runnable>();
    
        @Override
        public boolean isCancellationRequested() {
            synchronized (lock) {
                return cancelled;
            }
        }
    
        @Override
        public boolean addCallback(Runnable cancellationHandler) {
            boolean returnValue;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 10:39:11 UTC 2019
    - 2.4K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
Back to top