Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for removeCallback (0.21 sec)

  1. subprojects/core/src/test/groovy/org/gradle/process/internal/DefaultExecHandleSpec.groovy

            result.assertNormalExitValue()
            1 * buildCancellationToken.addCallback(_) >> {
                assert it[0].class == ExecHandleShutdownHookAction
                true
            }
            1 * buildCancellationToken.removeCallback(_) >> {
                assert it[0].class == ExecHandleShutdownHookAction
                true
            }
        }
    
        void "waiting for process returns quickly if process already completed"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 23 03:44:52 UTC 2021
    - 14.9K bytes
    - Viewed (0)
  2. 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)
  3. 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)
Back to top