Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for inputFuture (0.06 seconds)

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

      @Override
      protected ListenableFuture<String> buildChainingFuture(ListenableFuture<Integer> inputFuture) {
        outputFuture = SettableFuture.create();
        funcIsWaitingLatch = new CountDownLatch(1);
        funcCompletionLatch = new CountDownLatch(1);
        return transformAsync(inputFuture, new ChainingFunction(), directExecutor());
      }
    
      @Override
      protected String getSuccessfulResult() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java

      @Override
      protected ListenableFuture<String> buildChainingFuture(ListenableFuture<Integer> inputFuture) {
        outputFuture = SettableFuture.create();
        funcIsWaitingLatch = new CountDownLatch(1);
        funcCompletionLatch = new CountDownLatch(1);
        return transformAsync(inputFuture, new ChainingFunction(), directExecutor());
      }
    
      @Override
      protected String getSuccessfulResult() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/util/concurrent/Futures.java

        private final @Nullable ListenableFuture<? extends T>[] inputFutures;
        private volatile int delegateIndex = 0;
    
        private InCompletionOrderState(ListenableFuture<? extends T>[] inputFutures) {
          this.inputFutures = inputFutures;
          incompleteOutputCount = new AtomicInteger(inputFutures.length);
        }
    
        private void recordOutputCancellation(boolean interruptIfRunning) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 64.2K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        AsyncFunction<String, Integer> function =
            unused -> {
              throw error;
            };
        SettableFuture<String> inputFuture = SettableFuture.create();
        ListenableFuture<Integer> outputFuture =
            transformAsync(inputFuture, function, directExecutor());
        inputFuture.set("value");
        ExecutionException expected =
            assertThrows(ExecutionException.class, () -> getDone(outputFuture));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        AsyncFunction<String, Integer> function =
            unused -> {
              throw error;
            };
        SettableFuture<String> inputFuture = SettableFuture.create();
        ListenableFuture<Integer> outputFuture =
            transformAsync(inputFuture, function, directExecutor());
        inputFuture.set("value");
        ExecutionException expected =
            assertThrows(ExecutionException.class, () -> getDone(outputFuture));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

        }
    
        private FutureCombiner<@Nullable Object> futureCombiner() {
          return allMustSucceed
              ? Futures.whenAllSucceed(inputFutures())
              : Futures.whenAllComplete(inputFutures());
        }
    
        private ImmutableList<FluentFuture<?>> inputFutures() {
          return FluentIterable.from(inputs)
              .<FluentFuture<?>>transform(future -> future.state.future)
              .toList();
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 101.7K bytes
    - Click Count (0)
Back to Top