Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testSimpleWithWait (0.12 sec)

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

        assertThrows(IllegalArgumentException.class, () -> limiter.tryAcquire(0, 1, SECONDS));
        assertThrows(IllegalArgumentException.class, () -> limiter.tryAcquire(-1, 1, SECONDS));
      }
    
      public void testSimpleWithWait() {
        RateLimiter limiter = RateLimiter.create(5.0, stopwatch);
        limiter.acquire(); // R0.00
        stopwatch.sleepMillis(200); // U0.20, we are ready for the next request...
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        assertThrows(IllegalArgumentException.class, () -> limiter.tryAcquire(0, 1, SECONDS));
        assertThrows(IllegalArgumentException.class, () -> limiter.tryAcquire(-1, 1, SECONDS));
      }
    
      public void testSimpleWithWait() {
        RateLimiter limiter = RateLimiter.create(5.0, stopwatch);
        limiter.acquire(); // R0.00
        stopwatch.sleepMillis(200); // U0.20, we are ready for the next request...
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 21.8K bytes
    - Viewed (0)
Back to top