Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 379 for Futures (0.49 sec)

  1. guava/src/com/google/common/util/concurrent/InterruptibleTask.java

      /**
       * Do interruptible work here - do not complete Futures here, as their listeners could be
       * interrupted.
       */
      @ParametricNullness
      abstract T runInterruptibly() throws Exception;
    
      /**
       * Any interruption that happens as a result of calling interruptTask will arrive before this
       * method is called. Complete Futures here.
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Sep 29 21:34:48 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/package-info.java

     * the License.
     */
    
    /**
     * Concurrency utilities.
     *
     * <p>Commonly used types include {@link ClosingFuture}, {@link ListenableFuture}, and {@link
     * Service}.
     *
     * <p>Commonly used utilities include {@link Futures}, {@link MoreExecutors}, {@link
     * ThreadFactoryBuilder}, and {@link Uninterruptibles}.
     *
     * <p>This package is a part of the open-source <a href="https://github.com/google/guava">Guava</a>
     * library.
     */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 26 21:13:41 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/FutureCallbackTest.java

              }
    
              @Override
              public void onFailure(Throwable t) {
                failureCalls[0]++;
              }
            };
        addCallback(future, callback, directExecutor());
        future.set(result);
        assertEquals(result, future.get());
        assertThat(successCalls[0]).isEqualTo(1);
        assertThat(failureCalls[0]).isEqualTo(0);
      }
    
      public void testOnSuccessThrowsError() throws Exception {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 06 12:56:11 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/ListeningExecutorService.java

       */
      @Override
      <T extends @Nullable Object> List<Future<T>> invokeAll(
          Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
          throws InterruptedException;
    
      /**
       * Duration-based overload of {@link #invokeAll(Collection, long, TimeUnit)}.
       *
       * @since 32.1.0
       */
      @J2ktIncompatible
      default <T extends @Nullable Object> List<Future<T>> invokeAll(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 26 20:33:25 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

        try {
          sourceResult = getDone(localInputFuture);
        } catch (CancellationException e) {
          // TODO(user): verify future behavior - unify logic with getFutureValue in AbstractFuture. This
          // code should be unreachable with correctly implemented Futures.
          // Cancel this future and return.
          // At this point, inputFuture is cancelled and outputFuture doesn't exist, so the value of
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/AbstractCatchingFuture.java

          Class<X> exceptionType,
          Function<? super X, ? extends V> fallback,
          Executor executor) {
        CatchingFuture<V, X> future = new CatchingFuture<>(input, exceptionType, fallback);
        input.addListener(future, rejectionPropagatingExecutor(executor, future));
        return future;
      }
    
      static <X extends Throwable, V extends @Nullable Object> ListenableFuture<V> create(
          ListenableFuture<? extends V> input,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/AggregateFutureState.java

    abstract class AggregateFutureState<OutputT extends @Nullable Object>
        extends AbstractFuture.TrustedFuture<OutputT> {
      // Lazily initialized the first time we see an exception; not released until all the input futures
      // & this future completes. Released when the future releases the reference to the running state
      private @Nullable Set<Throwable> seenExceptions = null;
      private int remaining;
    
      AggregateFutureState(int remainingFutures) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Dec 08 20:30:27 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/AbstractCatchingFuture.java

          Class<X> exceptionType,
          Function<? super X, ? extends V> fallback,
          Executor executor) {
        CatchingFuture<V, X> future = new CatchingFuture<>(input, exceptionType, fallback);
        input.addListener(future, rejectionPropagatingExecutor(executor, future));
        return future;
      }
    
      static <X extends Throwable, V extends @Nullable Object> ListenableFuture<V> create(
          ListenableFuture<? extends V> input,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

              future = setFuture.owner;
              if (future.value == setFuture) {
                Object valueToSet = getFutureValue(setFuture.future);
                if (ATOMIC_HELPER.casValue(future, setFuture, valueToSet)) {
                  continue outer;
                }
              }
              // otherwise the future we were trying to set is already done.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 63.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/AbstractFuture.java

              future = setFuture.owner;
              if (future.value == setFuture) {
                Object valueToSet = getFutureValue(setFuture.future);
                if (ATOMIC_HELPER.casValue(future, setFuture, valueToSet)) {
                  continue outer;
                }
              }
              // otherwise the future we were trying to set is already done.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 62.8K bytes
    - Viewed (0)
Back to top