Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testScheduleRunnable (0.07 seconds)

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

      private long recordedDelay;
      private long recordedInterval;
      private TimeUnit recordedTimeUnit;
    
      private final ListeningScheduledExecutorService executorService = new FakeExecutorService();
    
      public void testScheduleRunnable() throws Exception {
        Runnable command = () -> {};
    
        ListenableScheduledFuture<?> future = executorService.schedule(command, Duration.ofSeconds(12));
    
        assertThat(future.get()).isEqualTo("schedule");
    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)
Back to Top