Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for notInState (0.13 sec)

  1. subprojects/core/src/main/java/org/gradle/internal/build/DefaultBuildLifecycleController.java

            return gradle;
        }
    
        @Override
        public void loadSettings() {
            state.notInState(State.Finished, modelController::getLoadedSettings);
        }
    
        @Override
        public <T> T withSettings(Function<? super SettingsInternal, T> action) {
            return state.notInState(State.Finished, () -> action.apply(modelController.getLoadedSettings()));
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 11:17:11 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/internal/model/StateTransitionControllerTest.groovy

            }
    
            when:
            asWorker {
                controller.notInState(TestState.A, action)
            }
    
            then:
            def e = thrown(RuntimeException)
            e == failure
    
            and:
            1 * action.get() >> { throw failure }
            0 * _
    
            when:
            asWorker {
                controller.notInState(TestState.B, action)
            }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 23K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/internal/model/StateTransitionController.java

         * Fails if the current state is the given state, the current thread is transitioning the state, or a previous operation has failed.
         * Blocks until other operations are complete.
         */
        public <S> S notInState(T forbidden, Supplier<S> action) {
            return synchronizer.withLock(() -> {
                CurrentState<T> current = state;
                current.assertNotInState(forbidden);
                try {
    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