Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 123 for instantly (0.25 sec)

  1. subprojects/core/src/test/groovy/org/gradle/internal/operations/MaxWorkersTest.groovy

                            spec.instant.child2Started
                            spec.thread.block()
                            spec.instant.child2Finished
                        }
                    })
                })
                outer.leaseFinish()
            }
    
            then:
            instant.child2Started > instant.child1Finished || instant.child1Started > instant.child2Finished
    
            cleanup:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/CleanupFrequency.java

    import java.time.Duration;
    import java.time.Instant;
    
    /**
     * Represents when cache cleanup should be triggered.
     *
     * @since 8.0
     */
    public interface CleanupFrequency {
        /**
         * Trigger cleanup once every 24 hours.
         */
        CleanupFrequency DAILY = new CleanupFrequency() {
            @Override
            public boolean requiresCleanup(@Nullable Instant lastCleanupTime) {
                if (lastCleanupTime == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 20:26:37 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/api/internal/project/DefaultProjectStateRegistryTest.groovy

                    state.applyToMutableState {
                        assert state.hasMutableState()
                        instant.thread2
                    }
                    assert !state.hasMutableState()
                }
            }
    
            then:
            instant.thread2 > instant.thread1
        }
    
        def "a given thread can only access the state of one project at a time"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/work/DefaultWorkerLeaseServiceProjectLockTest.groovy

                    workerLeaseService.withLocks([taskLease]) {
                        instant.worker1Locked
                        thread.block()
                        instant.worker1Unlocked
                    }
                }
                start {
                    thread.blockUntil.worker1Locked
                    workerLeaseService.withLocks([taskLease]) {
                        instant.worker2Locked
                        assert lockIsHeld(taskLease)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/MavenBuildTimestamp.java

         *             to {@link #MavenBuildTimestamp(Instant, String)} instead.
         */
        @Deprecated
        public MavenBuildTimestamp(Instant time, Properties properties) {
            this(time, properties != null ? properties.getProperty(BUILD_TIMESTAMP_FORMAT_PROPERTY) : null);
        }
    
        public MavenBuildTimestamp(Instant time, String timestampFormat) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/async/ServiceLifecycleTest.groovy

                start {
                    lifecycle.use {
                        instant.running
                        thread.block()
                        instant.finished
                    }
                }
                thread.blockUntil.running
                lifecycle.stop()
                instant.stopped
            }
    
            then:
            instant.finished < instant.stopped
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:55 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/work/DefaultConditionalExecutionQueueTest.groovy

            def execution = testExecution({
                instant.executionStarted
                println("I'm running!")
                thread.block()
                instant.executionFinished
            })
    
            when:
            async {
                queue.submit(execution)
                execution.await()
                instant.awaitFinished
            }
    
            then:
            instant.awaitFinished > instant.executionFinished
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/concurrent/NamedOperation.groovy

        }
    
        Instant getEnd() {
            def instant = end.get()
            if (instant == null) {
                throw new IllegalStateException("Operation '$name' has not completed yet.")
            }
            return instant
        }
    
        Duration getDuration() {
            return getEnd() - start
        }
    
        void completed(Instant when) {
            end.compareAndSet(null, when)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultCacheCleanupExecutor.java

            getLastCleanupTime()
                .ifPresent(this::performCleanupIfNecessary);
        }
    
        private void performCleanupIfNecessary(Instant lastCleanupTime) {
            if (LOGGER.isDebugEnabled()) {
                Duration timeSinceLastCleanup = Duration.between(lastCleanupTime, Instant.now());
                LOGGER.debug("{} has last been fully cleaned up {} hours ago", cleanableStore.getDisplayName(), timeSinceLastCleanup.toHours());
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 16:53:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. platforms/core-runtime/daemon-services/src/test/groovy/org/gradle/api/internal/tasks/userinput/DefaultUserInputReaderTest.groovy

            async {
                start {
                    def result = userInputReader.readInput()
                    instant.read
                    assert result == response
                }
                thread.block()
                instant.put
                userInputReader.putInput(response)
            }
            instant.read > instant.put
    
            where:
            response << [
                new UserInputReader.TextResponse("answer"),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 04:50:46 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top