Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for testTryAcquireWithNoWait (0.57 seconds)

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

      public void testSleepMultiInterrupt() {
        repeatedlyInterruptTestThread(tearDownStack);
        sleepSuccessfully(100);
        assertInterrupted();
      }
    
      // Semaphore.tryAcquire() tests
      public void testTryAcquireWithNoWait() {
        Stopwatch stopwatch = Stopwatch.createStarted();
        Semaphore semaphore = new Semaphore(99);
        assertTrue(tryAcquireUninterruptibly(semaphore, 0, MILLISECONDS));
    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)
  2. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

      public void testSleepMultiInterrupt() {
        repeatedlyInterruptTestThread(tearDownStack);
        sleepSuccessfully(100);
        assertInterrupted();
      }
    
      // Semaphore.tryAcquire() tests
      public void testTryAcquireWithNoWait() {
        Stopwatch stopwatch = Stopwatch.createStarted();
        Semaphore semaphore = new Semaphore(99);
        assertTrue(tryAcquireUninterruptibly(semaphore, 0, MILLISECONDS));
    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)
Back to Top