- Sort Score
- Result 10 results
- Languages All
Results 11 - 14 of 14 for removeCallback (0.41 sec)
-
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) -
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) -
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) -
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)