Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testInvokeAny (0.06 seconds)

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

      private long recordedTimeout;
      private TimeUnit recordedTimeUnit;
    
      private final ListeningExecutorService executorService = new FakeExecutorService();
    
      public void testInvokeAny() throws Exception {
        Set<Callable<String>> tasks = Collections.singleton(() -> "invokeAny");
    
        String result = executorService.invokeAny(tasks, Duration.ofSeconds(7));
    
        assertThat(result).isEqualTo("invokeAny");
    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)
Back to Top