Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 191 - 200 of 1,134 for futures (0.05 seconds)

  1. guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java

        return delegate.submit(task);
      }
    
      @Override
      public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks)
          throws InterruptedException {
        Preconditions.checkNotNull(tasks, "tasks must not be null!");
        return delegate.invokeAll(tasks);
      }
    
      @Override
      public <T> List<Future<T>> invokeAll(
          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)
  2. guava-tests/test/com/google/common/util/concurrent/TrustedInputFutureTest.java

      @Override
      AbstractFuture<@Nullable Integer> newDelegate() {
        AbstractFuture<@Nullable Integer> future = new TrustedFuture<@Nullable Integer>() {};
        assertTrue(future instanceof TrustedFuture); // sanity check
        return future;
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 1.3K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/UntrustedInputFutureTest.java

      @Override
      AbstractFuture<@Nullable Integer> newDelegate() {
        AbstractFuture<@Nullable Integer> future = new AbstractFuture<@Nullable Integer>() {};
        assertFalse(future instanceof TrustedFuture); // sanity check
        return future;
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 1.3K bytes
    - Click Count (0)
  4. guava-testlib/src/com/google/common/testing/GcFinalization.java

      }
    
      /**
       * Waits until the given future {@linkplain Future#isDone is done}, invoking the garbage collector
       * as necessary to try to ensure that this will happen.
       *
       * @throws RuntimeException if timed out or interrupted while waiting
       */
      @SuppressWarnings("removal") // b/487687332
      public static void awaitDone(Future<?> future) {
        if (future.isDone()) {
          return;
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 20:19:19 GMT 2026
    - 12.3K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

        Callable<String> callable = () -> expected;
    
        AsyncCallable<String> asyncCallable =
            Callables.asAsyncCallable(callable, newDirectExecutorService());
    
        ListenableFuture<String> future = asyncCallable.call();
        assertThat(future.get()).isEqualTo(expected);
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testAsAsyncCallable_exception() throws Exception {
        Exception expected = new IllegalArgumentException();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 4K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

        Callable<String> callable = () -> expected;
    
        AsyncCallable<String> asyncCallable =
            Callables.asAsyncCallable(callable, newDirectExecutorService());
    
        ListenableFuture<String> future = asyncCallable.call();
        assertThat(future.get()).isEqualTo(expected);
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testAsAsyncCallable_exception() throws Exception {
        Exception expected = new IllegalArgumentException();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 4K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/base/Function.java

     * or method references instead of classes, leaving your code easier to migrate in the future.
     *
     * <p>To use an existing function (say, named {@code function}) in a context where the <i>other
     * type</i> of function is expected, use the method reference {@code function::apply}. A future
     * version of {@code com.google.common.base.Function} will be made to <i>extend</i> {@code
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jul 10 01:47:55 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  8. doc/next/6-stdlib/99-minor/hash/maphash/70471.md

    The [Hasher] interface type defines the contract between values of a
    particular type and future hash-based data structures such as hash
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Apr 03 15:21:15 GMT 2026
    - 191 bytes
    - Click Count (0)
  9. futures/failureaccess/src/com/google/common/util/concurrent/internal/InternalFutureFailureAccess.java

     * the License.
     */
    
    package com.google.common.util.concurrent.internal;
    
    
    /**
     * A future that, if it fails, may <i>optionally</i> provide access to the cause of the failure.
     *
     * <p>This class is used only for micro-optimization. Standard {@code Future} utilities benefit from
     * this optimization, so there is no need to specialize methods to return or accept this type
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Jan 18 02:54:30 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

        CountDownLatch latch = new CountDownLatch(1);
        SettableFuture<?> future = SettableFuture.create();
        Executor delegate =
            new Executor() {
              @Override
              public void execute(Runnable task) {
                if (future.set(null)) {
                  awaitUninterruptibly(latch);
                }
                throw new RejectedExecutionException();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 10.5K bytes
    - Click Count (0)
Back to Top