Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for maybeTransition (0.18 sec)

  1. subprojects/core/src/test/groovy/org/gradle/internal/model/StateTransitionControllerTest.groovy

            e.message == "<state> should be in state C or later."
        }
    
        def "maybeTransition() runs action for transition when in from state"() {
            def action = Mock(Runnable)
            def controller = controller(TestState.A)
    
            when:
            asWorker {
                controller.maybeTransition(TestState.A, TestState.B, action)
            }
    
            then:
            1 * action.run()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 23K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/internal/build/DefaultBuildLifecycleController.java

            return state.notInStateIgnoreOtherThreads(State.Finished, modelController::getConfiguredModel);
        }
    
        @Override
        public void prepareToScheduleTasks() {
            state.maybeTransition(State.Configure, State.TaskSchedule, () -> {
                hasTasks = true;
                modelController.prepareToScheduleTasks();
            });
        }
    
        @Override
        public BuildWorkPlan newWorkGraph() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 11:17:11 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/internal/model/StateTransitionController.java

         * Blocks until other operations are complete.
         */
        public void maybeTransition(T fromState, T toState, Runnable action) {
            synchronizer.withLock(() -> {
                if (state.inStateAndNotTransitioning(toState)) {
                    return;
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 03 03:31:44 UTC 2023
    - 20.9K bytes
    - Viewed (0)
Back to top