Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for withCancellation (0.16 sec)

  1. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/GradleBuildCancellation.groovy

        @Override
        void cancel() {
            cancellationTokenSource.cancel()
        }
    
        @Override
        CancellationToken token() {
            return cancellationTokenSource.token()
        }
    
        public <T> T withCancellation(@DelegatesTo(ProjectConnection) @ClosureParams(value = SimpleType, options = ["org.gradle.tooling.CancellationToken"]) Closure<T> cl) {
            try {
                cancellationTokenSource = GradleConnector.newCancellationTokenSource()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r26/TestLauncherCrossVersionSpec.groovy

            events.testClassesAndMethods.size() == (supportsEfficientClassFiltering() ? 3 : 4)
        }
    
        public <T> T withCancellation(@ClosureParams(value = SimpleType, options = ["org.gradle.tooling.CancellationToken"]) Closure<T> cl) {
            return cancellationTokenSource.withCancellation(cl)
        }
    
        def "listener errors are rethrown on client side"() {
            given:
            collectDescriptorsFromBuild()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 06:59:43 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/ContinuousBuildToolingApiSpecification.groovy

        }
    
        public <T> T runBuild(List<String> tasks = ["build"], Closure<T> underBuild) {
            if (projectConnection) {
                buildResult = new TestResultHandler()
    
                cancellationTokenSource.withCancellation { CancellationToken token ->
                    // this is here to ensure that the lastModified() timestamps actually change in between builds.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 9.1K bytes
    - Viewed (0)
Back to top