Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testTakeWithNoWait (0.08 sec)

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

        repeatedlyInterruptTestThread(20, tearDownStack);
        queue.putSuccessfully();
        assertInterrupted();
      }
    
      // BlockingQueue.take() tests
      public void testTakeWithNoWait() {
        Stopwatch stopwatch = Stopwatch.createStarted();
        BlockingQueue<String> queue = new ArrayBlockingQueue<>(1);
        assertTrue(queue.offer(""));
        assertEquals("", takeUninterruptibly(queue));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 31.7K bytes
    - Viewed (0)
Back to top