Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 11 for invokeAny (0.24 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

          String s = testExecutor.invokeAny(tasks);
          assertThat(s).isEqualTo("ran0");
          mock.assertLastMethodCalled("invokeAny");
        }
        {
          MockExecutor mock = new MockExecutor();
          TimeUnit unit = SECONDS;
          long timeout = 5;
          TestExecutor testExecutor = new TestExecutor(mock);
          String s = testExecutor.invokeAny(tasks, timeout, unit);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java

          String s = testExecutor.invokeAny(tasks);
          assertThat(s).isEqualTo("ran0");
          mock.assertLastMethodCalled("invokeAny");
        }
        {
          MockExecutor mock = new MockExecutor();
          TimeUnit unit = SECONDS;
          long timeout = 5;
          TestExecutor testExecutor = new TestExecutor(mock);
          String s = testExecutor.invokeAny(tasks, timeout, unit);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  3. guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

       * submitted tasks and to collections of tasks submitted via {@code invokeAll}, {@code invokeAny},
       * {@code schedule}, {@code scheduleAtFixedRate}, and {@code scheduleWithFixedDelay}. In the case
       * of tasks submitted by {@code invokeAll} or {@code invokeAny}, tasks will run serially on the
       * calling thread. Tasks are run to completion before a {@code Future} is returned to the caller
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jul 17 15:26:41 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/ListeningExecutorServiceTest.java

      public void testInvokeAny() throws Exception {
        Set<Callable<String>> tasks = Collections.singleton(() -> "invokeAny");
    
        String result = executorService.invokeAny(tasks, Duration.ofSeconds(7));
    
        assertThat(result).isEqualTo("invokeAny");
        assertThat(recordedTasks).isSameInstanceAs(tasks);
        assertThat(recordedTimeUnit).isEqualTo(NANOSECONDS);
    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)
  5. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        }
      }
    
      /** invokeAny(null) throws NPE */
      public void testInvokeAnyImpl_nullTasks() throws Exception {
        ListeningExecutorService e = newDirectExecutorService();
        try {
          invokeAnyImpl(e, null, false, 0, NANOSECONDS);
          fail();
        } catch (NullPointerException success) {
        } finally {
          joinPool(e);
        }
      }
    
      /** invokeAny(empty collection) throws IAE */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 26.1K bytes
    - Click Count (0)
  6. android/guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java

        return delegate.invokeAll(tasks, timeout, unit);
      }
    
      @Override
      public <T> T invokeAny(Collection<? extends Callable<T>> tasks)
          throws InterruptedException, ExecutionException {
        Preconditions.checkNotNull(tasks, "tasks must not be null!");
        return delegate.invokeAny(tasks);
      }
    
      @Override
      public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:37:28 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  7. guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java

        return delegate.invokeAll(tasks, timeout, unit);
      }
    
      @Override
      public <T> T invokeAny(Collection<? extends Callable<T>> tasks)
          throws InterruptedException, ExecutionException {
        Preconditions.checkNotNull(tasks, "tasks must not be null!");
        return delegate.invokeAny(tasks);
      }
    
      @Override
      public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:37:28 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/util/concurrent/WrappingExecutorService.java

      }
    
      @Override
      public final <T extends @Nullable Object> T invokeAny(Collection<? extends Callable<T>> tasks)
          throws InterruptedException, ExecutionException {
        return delegate.invokeAny(wrapTasks(tasks));
      }
    
      @Override
      public final <T extends @Nullable Object> T invokeAny(
          Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jul 11 18:52:30 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        }
      }
    
      /** invokeAny(null) throws NPE */
      public void testInvokeAnyImpl_nullTasks() throws Exception {
        ListeningExecutorService e = newDirectExecutorService();
        try {
          invokeAnyImpl(e, null, false, 0, NANOSECONDS);
          fail();
        } catch (NullPointerException success) {
        } finally {
          joinPool(e);
        }
      }
    
      /** invokeAny(empty collection) throws IAE */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 26.1K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

       * as {@code execute} and {@code invokeAny}, are implemented in terms of calls to {@code
       * delegate.execute}. All other methods are forwarded unchanged to the delegate. This implies that
       * the returned {@code ListeningExecutorService} never calls the delegate's {@code submit}, {@code
       * invokeAll}, and {@code invokeAny} methods, so any special handling of tasks must be implemented
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jan 28 22:39:02 GMT 2026
    - 45.6K bytes
    - Click Count (0)
Back to Top