- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for newCancellationTokenSource (0.31 sec)
-
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r22/CancellationCrossVersionSpec.groovy
class CancellationCrossVersionSpec extends CancellationSpec { def "can cancel build during settings phase"() { setupCancelInSettingsBuild() def cancel = GradleConnector.newCancellationTokenSource() def sync = server.expectAndBlock("registered") def resultHandler = new TestResultHandler() when: withConnection { ProjectConnection connection ->
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 8.2K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r21/CancellationCrossVersionSpec.groovy
rootProject.name = 'cancelling' ''' } def "early cancel stops the build before beginning"() { buildFile << """ throw new GradleException("should not run") """ def cancel = GradleConnector.newCancellationTokenSource() def resultHandler = new TestResultHandler() when: cancel.cancel() withConnection { ProjectConnection connection -> def build = connection.newBuild()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 4K bytes - Viewed (0) -
platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/GradleBuildCancellation.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 1.8K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r48/CancellationCrossVersionSpec.groovy
class CancellationCrossVersionSpec extends CancellationSpec { def "can cancel phased build action execution during configuration phase"() { setupCancelInConfigurationBuild() def cancel = GradleConnector.newCancellationTokenSource() def sync = server.expectAndBlock("registered") def resultHandler = new TestResultHandler() when: withConnection { ProjectConnection connection ->
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 16 10:10:39 UTC 2024 - 2K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r26/TestLauncherCancellationCrossVersionSpec.groovy
def "can cancel test execution request during configuration phase"() { setupCancelInConfigurationBuild() def cancel = GradleConnector.newCancellationTokenSource() def sync = server.expectAndBlock("registered") def resultHandler = new TestResultHandler() when: withConnection { ProjectConnection connection ->
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 1.7K bytes - Viewed (0) -
platforms/ide/tooling-api/src/main/java/org/gradle/tooling/CancellationTokenSource.java
* instances. To use a token source: * * <ul> * <li>Create a token source using {@link GradleConnector#newCancellationTokenSource()}.</li> * <li>Attach the token to one or more operations using {@link org.gradle.tooling.LongRunningOperation#withCancellationToken(CancellationToken)}. * You need to do this before you start the operation.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 2.1K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r65/ToolingApiShutdownCrossVersionSpec.groovy
when: def connector = toolingApi.connector() ProjectConnection connection = connector.connect() def cancellation = GradleConnector.newCancellationTokenSource() def build = connection.newBuild() build.forTasks('hang').withCancellationToken(cancellation.token()).run(resultHandler) sync.waitForAllPendingCalls(resultHandler)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 16 10:10:39 UTC 2024 - 11.5K bytes - Viewed (0) -
platforms/ide/tooling-api/src/main/java/org/gradle/tooling/GradleConnector.java
* * @return The instance. Never returns {@code null}. * @since 2.1 */ public static CancellationTokenSource newCancellationTokenSource() { return ConnectorServices.createCancellationTokenSource(); } /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 8.3K bytes - Viewed (0)