Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for removeCallback (0.38 sec)

  1. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/protocol/InternalCancellationToken.java

        /**
         * Removes a callback from a set of handlers called when cancel is requested.
         *
         * @param cancellationHandler removed callback.
         */
        void removeCallback(Runnable cancellationHandler);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 13:57:30 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/CancelExecutionStep.java

            Runnable interrupt = thread::interrupt;
            try {
                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)
  3. platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/WorkerDaemonClientCancellationHandler.java

                buildCancellationToken.addCallback(cancellationCallback);
            }
        }
    
        @Override
        public void stop() {
            if (started.compareAndSet(true, false)) {
                buildCancellationToken.removeCallback(cancellationCallback);
            }
        }
    
        @NonNullApi
        private class KillWorkers implements Runnable {
            @Override
            public void run() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 19:57:50 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/client/DaemonClientTest.groovy

            1 * connection.dispatch({ it instanceof CloseInput })
            1 * connection.dispatch({ it instanceof Finished })
            1 * cancellationToken.cancellationRequested >> true
            1 * cancellationToken.removeCallback(_)
            1 * connection.stop()
            0 * _
        }
    
        def "tries to find a different daemon if connected to a stale daemon address"() {
            def resultMessage = Stub(BuildActionResult)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:54:56 UTC 2024
    - 10K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/process/internal/DefaultExecHandle.java

            }
        }
    
        private void setEndStateInfo(ExecHandleState newState, int exitValue, Throwable failureCause) {
            ShutdownHooks.removeShutdownHook(shutdownHookAction);
            buildCancellationToken.removeCallback(shutdownHookAction);
            ExecHandleState currentState;
            lock.lock();
            try {
                currentState = this.state;
            } finally {
                lock.unlock();
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  6. callbacks.go

    			callbacks = append(callbacks, callback)
    		}
    		if callback.remove {
    			removedMap[callback.name] = true
    		}
    	}
    
    	if len(removedMap) > 0 {
    		callbacks = removeCallbacks(callbacks, removedMap)
    	}
    	p.callbacks = callbacks
    
    	if p.fns, err = sortCallbacks(p.callbacks); err != nil {
    		p.db.Logger.Error(context.Background(), "Got error when compile callbacks, got %v", err)
    	}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Mar 26 03:33:36 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top