- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testTryAcquireWithNoWait (0.25 sec)
-
guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java
public void testSleepMultiInterrupt() { repeatedlyInterruptTestThread(10, tearDownStack); sleepSuccessfully(100); assertInterrupted(); } // Semaphore.tryAcquire() tests public void testTryAcquireWithNoWait() { Stopwatch stopwatch = Stopwatch.createStarted(); Semaphore semaphore = new Semaphore(99); assertTrue(tryAcquireUninterruptibly(semaphore, 0, MILLISECONDS));
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Feb 09 22:57:07 GMT 2022 - 31.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java
public void testSleepMultiInterrupt() { repeatedlyInterruptTestThread(10, tearDownStack); sleepSuccessfully(100); assertInterrupted(); } // Semaphore.tryAcquire() tests public void testTryAcquireWithNoWait() { Stopwatch stopwatch = Stopwatch.createStarted(); Semaphore semaphore = new Semaphore(99); assertTrue(tryAcquireUninterruptibly(semaphore, 0, MILLISECONDS));
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 09 22:57:07 GMT 2022 - 30.9K bytes - Viewed (0)