Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for invokeAny (0.06 sec)

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

          String s = testExecutor.invokeAny(tasks);
          assertEquals("ran0", s);
          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);
          assertEquals(RESULT_VALUE + "0", s);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java

          String s = testExecutor.invokeAny(tasks);
          assertEquals("ran0", s);
          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);
          assertEquals(RESULT_VALUE + "0", s);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  3. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 44.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/WrappingScheduledExecutorServiceTest.java

          throw new UnsupportedOperationException();
        }
    
        @Override
        public <T> T invokeAny(Collection<? extends Callable<T>> tasks)
            throws ExecutionException, InterruptedException {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 7.6K bytes
    - Viewed (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 */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  6. 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 */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
Back to top