Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for destroyFns (0.51 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/genericapiserver.go

    func (s *GenericAPIServer) RegisterDestroyFunc(destroyFn func()) {
    	s.destroyFns = append(s.destroyFns, destroyFn)
    }
    
    // Destroy cleans up all its and its delegation target resources on shutdown.
    // It starts with destroying its own resources and later proceeds with
    // its delegation target.
    func (s *GenericAPIServer) Destroy() {
    	for _, destroyFn := range s.destroyFns {
    		destroyFn()
    	}
    	if s.delegationTarget != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 42.9K bytes
    - Viewed (0)
  2. subprojects/core-api/src/main/java/org/gradle/api/tasks/Destroys.java

     * or output) cannot execute concurrently with a task that destroys this file. This is useful for tasks that
     * clean up after other tasks such as `clean`.</p>
     *
     * @since 4.0
     */
    @Documented
    @Retention(RetentionPolicy.RUNTIME)
    @Target({ElementType.METHOD, ElementType.FIELD})
    public @interface Destroys {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 03:14:53 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/DestroyerTaskCommandLineOrderIntegrationTest.groovy

            }
        }
    
        def "destroyers and producers in different projects can run concurrently when they have no dependencies"() {
            def foo = subproject(':foo')
            def bar = subproject(':bar')
    
            def cleanFoo = foo.task('cleanFoo').destroys('build/foo').shouldBlock()
            def cleanBar = bar.task('cleanBar').destroys('build/bar')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 23 14:13:02 UTC 2022
    - 21.1K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/ProducerTaskCommandLineOrderIntegrationTest.groovy

            def packageBarSources = bar.task('packageBarSources').outputs('build/pkg-src').shouldBlock()
            def cleanFoo = foo.task('cleanFoo').destroys('build/foo')
            def cleanBar = bar.task('cleanBar').destroys('build/bar').destroys('build/pkg-src')
            def clean = rootBuild.task('clean').dependsOn(cleanFoo).dependsOn(cleanBar)
    
            server.start()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:34 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/execution/plan/OrdinalNode.java

    /**
     * Represents a node in the graph that controls ordinality of destroyers and producers as they are
     * added to the task graph.  For example "clean build" on the command line implies that the user wants
     * to run the clean tasks of each project before the build tasks of each project.  Ordinal nodes ensure
     * this order by tracking the dependencies of destroyers and producers in each group of tasks added to
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Aug 26 20:13:45 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/stream_executor/stream_executor.h

      // Callbacks for getting device count
      void (*get_device_count)(const SP_Platform* platform, int* device_count,
                               TF_Status* status);
      // Callbacks for creating/destroying SP_Device.
      void (*create_device)(const SP_Platform* platform,
                            SE_CreateDeviceParams* params, TF_Status* status);
    
      // Clean up fields inside SP_Device that were allocated
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 24 08:40:35 UTC 2022
    - 21.6K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/DefaultTaskDestroyablesTest.groovy

            taskMutator,
            TestFiles.fileCollectionFactory(testDir.testDirectory)
        )
    
        def "empty destroys by default"() {
            expect:
            taskDestroys.registeredFiles != null
            taskDestroys.registeredFiles.isEmpty()
        }
    
        def "can declare a file that a task destroys"() {
            when:
            taskDestroys.register("a")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jul 03 07:26:07 UTC 2020
    - 2.7K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/AbstractCommandLineOrderTaskIntegrationTest.groovy

                return this
            }
    
            TaskFixture mustRunAfter(TaskFixture task) {
                mustRunAfter.add(task)
                return this
            }
    
            TaskFixture destroys(String path) {
                destroys.add(path)
                return this
            }
    
            TaskFixture outputs(String path) {
                return produces(path, ProductionType.OUTPUT)
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  9. subprojects/core-api/src/main/java/org/gradle/api/tasks/TaskDestroyables.java

    import org.gradle.internal.HasInternalProtocol;
    
    /**
     * Represents the files or directories that a {@link org.gradle.api.Task} destroys (removes).
     *
     * @since 4.0
     */
    @HasInternalProtocol
    public interface TaskDestroyables {
        /**
         * Registers files or directories that this task destroys.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 14 16:39:36 UTC 2018
    - 1.1K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/api/internal/tasks/properties/annotations/DestroysPropertyAnnotationHandler.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.api.internal.tasks.properties.annotations;
    
    import org.gradle.api.tasks.Destroys;
    import org.gradle.internal.execution.model.annotations.ModifierAnnotationCategory;
    import org.gradle.internal.properties.PropertyValue;
    import org.gradle.internal.properties.PropertyVisitor;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Nov 18 11:36:48 UTC 2022
    - 1.7K bytes
    - Viewed (0)
Back to top