Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,783 for Instant (0.12 sec)

  1. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/work/DefaultWorkerLeaseServiceWorkerLeaseTest.groovy

                        instant.worker2
                        thread.block()
                        instant.worker2Finished
                    }
                }
            }
    
            then:
            instant.acquired > instant.worker2Finished
    
            cleanup:
            registry?.stop()
        }
    
        def "does not release worker lease when locks can be acquired without blocking"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  2. 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)
  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. 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)
  5. 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)
  6. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/InMemoryDecoratedCacheTest.groovy

                    cache.get("key1", {
                        instant.one
                        thread.block()
                        instant.one_done
                        return "one"
                    }, Stub(Runnable))
                }
                start {
                    cache.get("key2", {
                        instant.two
                        thread.block()
                        instant.two_done
                        return "two"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/DefaultBuildActionExecuterTest.groovy

            instant.dispatched < instant.resultAvailable
            instant.resultAvailable < instant.resultReceived
        }
    
        def "run() blocks until result is available"() {
            GradleProject result = Mock()
    
            given:
            asyncConnection.run(!null, !null) >> { args ->
                def handler = args[1]
                start {
                    thread.block()
                    instant.resultAvailable
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/internal/work/DefaultAsyncWorkTrackerTest.groovy

                        instant."worker${i}Started"
                    }
                }
                5.times { i ->
                    thread.blockUntil."worker${i}Started"
                }
                workerThread {
                    instant.waitStarted
                    asyncWorkTracker.waitForCompletion(operation, RELEASE_PROJECT_LOCKS)
                    instant.waitFinished
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 06 04:53:10 UTC 2023
    - 14.9K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/DefaultModelBuilderTest.groovy

            instant.dispatched < instant.resultAvailable
            instant.resultAvailable < instant.resultReceived
        }
    
        def "get() blocks until model is available"() {
            GradleProject result = Mock()
    
            given:
            asyncConnection.run(!null, !null) >> { args ->
                def handler = args[1]
                start {
                    thread.block()
                    instant.resultAvailable
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/HeadersJvmTest.kt

      }
    
      @Test fun setInstant() {
        val expected = Instant.ofEpochMilli(1000L)
        val headers =
          Headers.Builder()
            .add("Test-Instant", Instant.ofEpochMilli(0L))
            .set("Test-Instant", expected)
            .build()
        assertThat(headers["Test-Instant"]).isEqualTo("Thu, 01 Jan 1970 00:00:01 GMT")
        assertThat(headers.getInstant("Test-Instant")).isEqualTo(expected)
      }
    
      @Test fun addParsing() {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top