- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for SleepTask (0.18 sec)
-
guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java
executor.execute(new SleepTask(10000)); executor.shutdown(); assertFalse(awaitTerminationUninterruptibly(executor, 1000, MILLISECONDS)); assertFalse(executor.isTerminated()); assertInterrupted(); } public void testTryAwaitTerminationInfiniteTimeout() { ExecutorService executor = newFixedThreadPool(1); requestInterruptIn(500); executor.execute(new SleepTask(1000)); executor.shutdown();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Jun 10 16:06:39 UTC 2024 - 31.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java
this.semaphore = semaphore; } @Override protected void doAction() { semaphore.release(10); } } private static final class SleepTask extends DelayedActionRunnable { SleepTask(long tMinus) { super(tMinus); } @Override protected void doAction() {} } private static void sleepSuccessfully(long sleepMillis) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 09 22:57:07 UTC 2022 - 30.9K bytes - Viewed (0)