Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for reserveAndGetWaitLength (0.08 sec)

  1. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

       * @return time in microseconds to wait until the resource can be acquired, never negative
       */
      final long reserve(int permits) {
        checkPermits(permits);
        synchronized (mutex()) {
          return reserveAndGetWaitLength(permits, stopwatch.readMicros());
        }
      }
    
      /**
       * Acquires a permit from this {@code RateLimiter} if it can be obtained without exceeding the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/RateLimiter.java

       * @return time in microseconds to wait until the resource can be acquired, never negative
       */
      final long reserve(int permits) {
        checkPermits(permits);
        synchronized (mutex()) {
          return reserveAndGetWaitLength(permits, stopwatch.readMicros());
        }
      }
    
      /**
       * Acquires a permit from this {@code RateLimiter} if it can be obtained without exceeding the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 21.6K bytes
    - Viewed (0)
Back to top