- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for ofMinutes (0.04 seconds)
-
guava-tests/test/com/google/common/util/concurrent/ListeningExecutorServiceTest.java
} public void testAwaitTermination() throws Exception { boolean result = executorService.awaitTermination(Duration.ofMinutes(144)); assertThat(result).isTrue(); assertThat(recordedTimeUnit).isEqualTo(NANOSECONDS); assertThat(Duration.ofNanos(recordedTimeout)).isEqualTo(Duration.ofMinutes(144)); } private class FakeExecutorService extends AbstractListeningExecutorService { @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 4.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/ListeningScheduledExecutorServiceTest.java
ListenableScheduledFuture<String> future = executorService.schedule(callable, Duration.ofMinutes(12)); assertThat(future.get()).isEqualTo("hello"); assertThat(recordedTimeUnit).isEqualTo(NANOSECONDS); assertThat(Duration.ofNanos(recordedDelay)).isEqualTo(Duration.ofMinutes(12)); } public void testScheduleAtFixedRate() throws Exception { Runnable command = () -> {};Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 6.5K bytes - Click Count (0)