- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for disableForCurrentThread (0.22 sec)
-
platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/InputTrackingStateTest.kt
@Test fun `disable and restore calls can be mixed non-trivially`() { val state = InputTrackingState() state.disableForCurrentThread() // <1> state.disableForCurrentThread() // <2> state.restoreForCurrentThread() // Revert <2> state.disableForCurrentThread() // <3> assertFalse(state.isEnabledForCurrentThread()) state.restoreForCurrentThread() // Revert <3>
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 3.7K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/InputTrackingState.kt
* enable input tracking back. */ fun disableForCurrentThread() { ++inputTrackingDisabledCounterForThread } /** * Restores the input tracking state to the state it was in before the last call to * [disableForCurrentThread]. */ fun restoreForCurrentThread() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 2.5K bytes - Viewed (0) -
platforms/enterprise/enterprise/src/main/java/org/gradle/internal/enterprise/impl/DefaultDevelocityPluginUnsafeConfigurationService.java
this.inputTrackingState = inputTrackingState; } @Override public <T> T withConfigurationInputTrackingDisabled(Supplier<T> supplier) { inputTrackingState.disableForCurrentThread(); try { return supplier.get(); } finally { inputTrackingState.restoreForCurrentThread(); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 1.5K bytes - Viewed (0)