Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for ListenableFuture (0.17 sec)

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

       * #setFuture(ListenableFuture)}.
       */
      private static final class AsyncTransformFuture<
              I extends @Nullable Object, O extends @Nullable Object>
          extends AbstractTransformFuture<
              I, O, AsyncFunction<? super I, ? extends O>, ListenableFuture<? extends O>> {
        AsyncTransformFuture(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/Futures.java

      @SafeVarargs
      public static <V extends @Nullable Object> ListenableFuture<List<V>> allAsList(
          ListenableFuture<? extends V>... futures) {
        ListenableFuture<List<@Nullable V>> nullable =
            new ListFuture<V>(ImmutableList.copyOf(futures), true);
        // allAsList ensures that it fills the output list with V instances.
        @SuppressWarnings("nullness")
        ListenableFuture<List<V>> nonNull = nullable;
        return nonNull;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/Futures.java

      @SafeVarargs
      public static <V extends @Nullable Object> ListenableFuture<List<V>> allAsList(
          ListenableFuture<? extends V>... futures) {
        ListenableFuture<List<@Nullable V>> nullable =
            new ListFuture<V>(ImmutableList.copyOf(futures), true);
        // allAsList ensures that it fills the output list with V instances.
        @SuppressWarnings("nullness")
        ListenableFuture<List<V>> nonNull = nullable;
        return nonNull;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 64.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/AbstractCatchingFuture.java

              V, X, AsyncFunction<? super X, ? extends V>, ListenableFuture<? extends V>> {
        AsyncCatchingFuture(
            ListenableFuture<? extends V> input,
            Class<X> exceptionType,
            AsyncFunction<? super X, ? extends V> fallback) {
          super(input, exceptionType, fallback);
        }
    
        @Override
        ListenableFuture<? extends V> doFallback(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    final class TimeoutFuture<V extends @Nullable Object> extends FluentFuture.TrustedFuture<V> {
      static <V extends @Nullable Object> ListenableFuture<V> create(
          ListenableFuture<V> delegate,
          long time,
          TimeUnit unit,
          ScheduledExecutorService scheduledExecutor) {
        TimeoutFuture<V> result = new TimeoutFuture<>(delegate);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/FutureCallbackTest.java

        Error error = new AssertionError("ASSERT!");
        ListenableFuture<String> f = UncheckedThrowingFuture.throwingError(error);
        MockCallback callback = new MockCallback(error);
        addCallback(f, callback, directExecutor());
      }
    
      public void testRuntimeExceptionFromGet() {
        RuntimeException e = new IllegalArgumentException("foo not found");
        ListenableFuture<String> f = UncheckedThrowingFuture.throwingRuntimeException(e);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/CollectionFuture.java

       * harmless, rather than just 99.99% harmless.
       */
      @CheckForNull @LazyInit private List<@Nullable Present<V>> values;
    
      CollectionFuture(
          ImmutableCollection<? extends ListenableFuture<? extends V>> futures,
          boolean allMustSucceed) {
        super(futures, allMustSucceed, true);
    
        List<@Nullable Present<V>> values =
            futures.isEmpty()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

       */
      @CheckForNull @LazyInit
      private ImmutableCollection<? extends ListenableFuture<? extends InputT>> futures;
    
      private final boolean allMustSucceed;
      private final boolean collectsValues;
    
      AggregateFuture(
          ImmutableCollection<? extends ListenableFuture<? extends InputT>> futures,
          boolean allMustSucceed,
          boolean collectsValues) {
        super(futures.size());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

                return expected;
              }
            };
    
        AsyncCallable<String> asyncCallable =
            Callables.asAsyncCallable(callable, newDirectExecutorService());
    
        ListenableFuture<String> future = asyncCallable.call();
        assertSame(expected, future.get());
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testAsAsyncCallable_exception() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. plugin.xml

    				<include name="dataformat/stax-api-*" />
    				<include name="dataformat/xmlbeans-*" />
    				<include name="minhash/guava-*" />
    				<include name="minhash/failureaccess-*" />
    				<include name="minhash/listenablefuture-*" />
    			</fileset>
    		</delete>
    	</target>
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 25 23:33:43 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top