- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for removeCallback (0.18 sec)
-
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) -
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) -
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)