Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 136 for permits (0.06 seconds)

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

        assertTrue("Should acquire initial permit", rateLimiter.tryAcquire());
        assertFalse("Should not acquire additional permit", rateLimiter.tryAcquire());
        stopwatch.sleepMillis(5000);
        assertFalse(
            "Should not acquire additional permit even after sleeping", rateLimiter.tryAcquire());
      }
    
      private long measureTotalTimeMillis(RateLimiter rateLimiter, int permits, Random random) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 22K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        assertTrue("Should acquire initial permit", rateLimiter.tryAcquire());
        assertFalse("Should not acquire additional permit", rateLimiter.tryAcquire());
        stopwatch.sleepMillis(5000);
        assertFalse(
            "Should not acquire additional permit even after sleeping", rateLimiter.tryAcquire());
      }
    
      private long measureTotalTimeMillis(RateLimiter rateLimiter, int permits, Random random) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 22K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        }
    
        private void tryAcquireUnsuccessfully(int permits, long timeoutMillis) {
          assertFalse(tryAcquireUninterruptibly(semaphore, permits, timeoutMillis, MILLISECONDS));
          completed.assertCompletionNotExpected(timeoutMillis);
        }
    
        private void scheduleRelease(long countdownInMillis) {
          DelayedActionRunnable toRun = new Release(semaphore, countdownInMillis);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 38.1K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        }
    
        private void tryAcquireUnsuccessfully(int permits, long timeoutMillis) {
          assertFalse(tryAcquireUninterruptibly(semaphore, permits, timeoutMillis, MILLISECONDS));
          completed.assertCompletionNotExpected(timeoutMillis);
        }
    
        private void scheduleRelease(long countdownInMillis) {
          DelayedActionRunnable toRun = new Release(semaphore, countdownInMillis);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 38.1K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/HashBiMap.java

           * seen value. And while we *could* do that, we aren't required to: Map.Entry explicitly says
           * that behavior is undefined when the backing map is modified through another API. (It even
           * permits us to throw IllegalStateException. Maybe we should have done that, but we probably
           * shouldn't change now for fear of breaking people.)
           *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 37K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/cache/CacheBuilder.java

       * to thread contention. But overestimates and underestimates within an order of magnitude do not
       * usually have much noticeable impact. A value of one permits only one thread to modify the cache
       * at a time, but since read operations and cache loading computations can proceed concurrently,
       * this still yields higher concurrency than full synchronization.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 13:13:59 GMT 2026
    - 52K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/ImmutableMap.java

         * nullness annotations in ImmutableMap and those in its own Map type. In response, it considers
         * the parameter and return type both to be platform types. As a result, Kotlin permits calls
         * that can lead to NullPointerException. That's unfortunate. But hopefully most Kotlin callers
         * use `get(key) ?: defaultValue` instead of this method, anyway.
         */
        V result = get(key);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 44.7K bytes
    - Click Count (0)
  8. guava/src/com/google/common/cache/CacheBuilder.java

       * to thread contention. But overestimates and underestimates within an order of magnitude do not
       * usually have much noticeable impact. A value of one permits only one thread to modify the cache
       * at a time, but since read operations and cache loading computations can proceed concurrently,
       * this still yields higher concurrency than full synchronization.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 13:13:59 GMT 2026
    - 51.7K bytes
    - Click Count (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

        assertCached(false, 403)
        assertCached(true, 404)
        assertCached(true, 405)
        assertCached(false, 406)
        assertCached(false, 408)
        assertCached(false, 409)
        // the HTTP spec permits caching 410s, but the RI doesn't.
        assertCached(true, 410)
        assertCached(false, 411)
        assertCached(false, 412)
        assertCached(false, 413)
        assertCached(true, 414)
        assertCached(false, 415)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Mar 20 09:13:37 GMT 2026
    - 121K bytes
    - Click Count (0)
  10. docs/es/docs/tutorial/cors.md

    * `allow_origin_regex` - Una cadena regex para coincidir con orígenes que deberían estar permitidos para hacer requests cross-origin. por ejemplo, `'https://.*\.example\.org'`.
    * `allow_methods` - Una lista de métodos HTTP que deberían estar permitidos para requests cross-origin. Por defecto es `['GET']`. Puedes usar `['*']` para permitir todos los métodos estándar.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 5.6K bytes
    - Click Count (0)
Back to Top