Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 670 for Instant (0.21 sec)

  1. platforms/core-runtime/concurrent/src/test/groovy/org/gradle/internal/concurrent/DefaultExecutorFactoryTest.groovy

                instant.willStop
                executor.stop()
                instant.stopped
            }
    
            then:
            instant.stopped > instant.completed1
            instant.stopped > instant.completed2
        }
    
        def factoryStopBlocksUntilAllScheduledRunningJobsAreCompleted() {
            given:
            def action1 = {
                instant.started1
                thread.blockUntil.willStop
                thread.block()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 11.2K 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. 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)
  4. 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)
  5. 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)
  6. 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)
  7. platforms/core-runtime/daemon-services/src/test/groovy/org/gradle/internal/daemon/clientinput/StdInStreamTest.groovy

                thread.blockUntil.requested2
                stream.received(bytes2)
            }
    
            then:
            1 * dispatch.onOutput({ it instanceof ReadStdInEvent }) >> { instant.requested1 }
            1 * dispatch.onOutput({ it instanceof ReadStdInEvent }) >> { instant.requested2 }
        }
    
        def "read bytes returns when stream is closed"() {
            def dispatch = Mock(OutputEventListener)
            def stream = new StdInStream(dispatch)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/DaemonStateCoordinatorTest.groovy

                instant.idle
                assert result == DaemonStopState.Clean
            }
    
            then:
            stopped
            instant.idle > instant.actionFinished
    
            and:
            1 * onStartCommand.run()
            1 * command.run() >> {
                instant.actionStarted
                thread.block()
                instant.actionFinished
            }
            0 * _._
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 05 22:24:02 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  9. platforms/software/testing-base-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/worker/TestWorkerTest.groovy

        }
    
        def createsTestProcessorAndBlocksUntilEndOfProcessingReceived() {
            when:
            async {
                worker.execute(workerContext)
                instant.completed
            }
    
            then:
            instant.completed > instant.stopped
            System.properties['org.gradle.test.worker'] == '<worker-id>'
    
            and:
            1 * factory.create(_, _, _) >> processor
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/LockOnDemandCrossProcessCacheAccessTest.groovy

            when:
            async {
                start {
                    cacheAccess.withFileLock {
                        instant.action1
                        thread.blockUntil.action2
                    }
                }
                start {
                    cacheAccess.withFileLock {
                        instant.action2
                        thread.blockUntil.action1
                    }
                }
            }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 21.8K bytes
    - Viewed (0)
Back to top