Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for withState (0.18 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/applyconfiguration/cr/v1/examplestatus.go

    	return &ExampleStatusApplyConfiguration{}
    }
    
    // WithState sets the State field in the declarative configuration to the given value
    // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    // If called multiple times, the State field is set to the value of the last call.
    func (b *ExampleStatusApplyConfiguration) WithState(value v1.ExampleState) *ExampleStatusApplyConfiguration {
    	b.State = &value
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 10 10:01:37 UTC 2023
    - 2K bytes
    - Viewed (0)
  2. subprojects/composite-builds/src/main/java/org/gradle/composite/internal/plugins/CompositeBuildPluginResolverContributor.java

                    return PluginResult.NO_INCLUDED_BUILDS;
                }
                for (IncludedBuildState build : includedBuilds) {
                    Optional<PluginResolution> pluginResolution = build.withState(gradleInternal -> LocalPluginResolution.resolvePlugin(gradleInternal, requestedPluginId));
                    if (pluginResolution.isPresent()) {
                        return new ResolvedPlugin(pluginResolution.get());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:30:55 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/internal/build/IncludedBuildState.java

        String getName();
    
        File getRootDirectory();
    
        boolean isPluginBuild();
    
        Action<? super DependencySubstitutions> getRegisteredDependencySubstitutions();
    
        <T> T withState(Transformer<T, ? super GradleInternal> action);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 14 21:39:25 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  4. subprojects/composite-builds/src/main/java/org/gradle/composite/internal/DefaultIncludedBuildTaskGraph.java

                }
            } finally {
                current.set(previous);
            }
        }
    
        @Override
        public IncludedBuildTaskResource locateTask(TaskIdentifier taskIdentifier) {
            return withState(workGraph -> {
                BuildState build = buildRegistry.getBuild(taskIdentifier.getBuildIdentifier());
                ExportedTaskNode taskNode = build.getWorkGraph().locateTask(taskIdentifier);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:04:24 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/client-go/applyconfigurations/core/v1/containerstatus.go

    	b.Name = &value
    	return b
    }
    
    // WithState sets the State field in the declarative configuration to the given value
    // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    // If called multiple times, the State field is set to the value of the last call.
    func (b *ContainerStatusApplyConfiguration) WithState(value *ContainerStateApplyConfiguration) *ContainerStatusApplyConfiguration {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. subprojects/composite-builds/src/test/groovy/org/gradle/composite/internal/DefaultIncludedBuildTest.groovy

            id.projectName == projectId.projectName
        }
    
        def "can run action against build state"() {
            def action = Mock(Transformer)
    
            when:
            def result = build.withState(action)
    
            then:
            result == "result"
            1 * action.transform(gradle) >> "result"
            0 * action._
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 22 14:22:44 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  7. subprojects/composite-builds/src/main/java/org/gradle/composite/internal/DefaultIncludedBuild.java

        @Override
        public Action<? super DependencySubstitutions> getRegisteredDependencySubstitutions() {
            return buildDefinition.getDependencySubstitutions();
        }
    
        @Override
        public <T> T withState(Transformer<T, ? super GradleInternal> action) {
            // This should apply some locking, but most access to the build state does not happen via this method yet
            return action.transform(getMutableModel());
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 06 15:09:14 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  8. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/resources/DefaultResourceLockCoordinationServiceTest.groovy

                    }
                })
    
                thread.blockUntil.executed2
            }
    
            then:
            lock1.lockedState
            lock2.lockedState
        }
    
        def "interrupting a withState call waiting for a resource makes it retry acquiring the lock"() {
            def lock1 = resourceLock("lock1", true)
            def count = 0
            Thread blockingThread = null
    
            when:
            async {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 17:16:10 UTC 2024
    - 15.4K bytes
    - Viewed (0)
Back to top