Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for sleep (0.16 sec)

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

        }
      }
    
      /**
       * Delays, via Thread.sleep, for the given millisecond delay, but if the sleep is shorter than
       * specified, may re-sleep or yield until time elapses.
       */
      static void delay(long millis) throws InterruptedException {
        long startTime = System.nanoTime();
        long ns = millis * 1000 * 1000;
        for (; ; ) {
          if (millis > 0L) Thread.sleep(millis);
          else // too short to sleep
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        }
      }
    
      /**
       * Delays, via Thread.sleep, for the given millisecond delay, but if the sleep is shorter than
       * specified, may re-sleep or yield until time elapses.
       */
      static void delay(long millis) throws InterruptedException {
        long startTime = System.nanoTime();
        long ns = millis * 1000 * 1000;
        for (; ; ) {
          if (millis > 0L) Thread.sleep(millis);
          else // too short to sleep
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/AbstractFilteredMapTest.java

        filtered.put("chicken", 7);
        assertEquals(ImmutableMap.of("cat", 3, "horse", 5, "chicken", 7), filtered);
    
        try {
          filtered.putAll(ImmutableMap.of("sheep", 5, "cow", 7));
          fail();
        } catch (IllegalArgumentException expected) {
        }
        assertEquals(ImmutableMap.of("cat", 3, "horse", 5, "chicken", 7), filtered);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/AbstractFilteredMapTest.java

        filtered.put("chicken", 7);
        assertEquals(ImmutableMap.of("cat", 3, "horse", 5, "chicken", 7), filtered);
    
        try {
          filtered.putAll(ImmutableMap.of("sheep", 5, "cow", 7));
          fail();
        } catch (IllegalArgumentException expected) {
        }
        assertEquals(ImmutableMap.of("cat", 3, "horse", 5, "chicken", 7), filtered);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 7.4K bytes
    - Viewed (0)
Back to top