Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testSimpleAcquireEarliestAvailableIsInPast (0.28 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

            .of(0.0); // R0.00, ...which is granted immediately
        assertThat(limiter.acquire()).isWithin(EPSILON).of(0.2); // R0.20
        assertEvents("R0.00", "U0.20", "R0.00", "R0.20");
      }
    
      public void testSimpleAcquireEarliestAvailableIsInPast() {
        RateLimiter limiter = RateLimiter.create(5.0, stopwatch);
        assertThat(limiter.acquire()).isWithin(EPSILON).of(0.0);
        stopwatch.sleepMillis(400);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

            .of(0.0); // R0.00, ...which is granted immediately
        assertThat(limiter.acquire()).isWithin(EPSILON).of(0.2); // R0.20
        assertEvents("R0.00", "U0.20", "R0.00", "R0.20");
      }
    
      public void testSimpleAcquireEarliestAvailableIsInPast() {
        RateLimiter limiter = RateLimiter.create(5.0, stopwatch);
        assertThat(limiter.acquire()).isWithin(EPSILON).of(0.0);
        stopwatch.sleepMillis(400);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 21.9K bytes
    - Viewed (0)
Back to top