- Sort Score
- Num 10 results
- Language All
Results 1 - 8 of 8 for callAsync (0.05 seconds)
-
android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java
AtomicReference<ClosingFuture.Peeker> capturedPeeker = new AtomicReference<>(); ClosingFuture<TestCloseable> closingFuture = ClosingFuture.whenAllComplete(ImmutableList.of(input1, input2Failed)) .callAsync( (closer, peeker) -> { closer.eventuallyClose(closeable1, closingExecutor); assertThat(peeker.getDone(input1)).isSameInstanceAs("value1"); try {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 63K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java
AtomicReference<ClosingFuture.Peeker> capturedPeeker = new AtomicReference<>(); ClosingFuture<TestCloseable> closingFuture = ClosingFuture.whenAllComplete(ImmutableList.of(input1, input2Failed)) .callAsync( (closer, peeker) -> { closer.eventuallyClose(closeable1, closingExecutor); assertThat(peeker.getDone(input1)).isSameInstanceAs("value1"); try {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 63K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/AsyncCallable.java
import java.util.concurrent.Future; import org.jspecify.annotations.Nullable; /** * Computes a value, possibly asynchronously. For an example usage and more information, see {@link * Futures.FutureCombiner#callAsync(AsyncCallable, java.util.concurrent.Executor)}. * * <p>Much like {@link java.util.concurrent.Callable}, but returning a {@link ListenableFuture} * result. * * @since 20.0 */ @GwtCompatibleCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 1.5K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/ClosingFuture.java
*/ public final <V extends @Nullable Object> ClosingFuture<V> callAsync( AsyncCombiningCallable<V> combiningCallable, Executor executor) { AsyncCallable<V> asyncCallable = new AsyncCallable<V>() { @Override public ListenableFuture<V> call() throws Exception { return new Peeker(inputs).callAsync(combiningCallable, closeables); }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) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java
SettableFuture<String> stringFuture = SettableFuture.create(); AsyncCallable<String> combiner = () -> stringFuture; ListenableFuture<String> futureResult = whenAllComplete().callAsync(combiner, directExecutor()); assertThat(Thread.interrupted()).isFalse(); futureResult.cancel(true); assertThat(Thread.interrupted()).isFalse(); } @J2ktIncompatible // Wildcard generics
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 134K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesTest.java
SettableFuture<String> stringFuture = SettableFuture.create(); AsyncCallable<String> combiner = () -> stringFuture; ListenableFuture<String> futureResult = whenAllComplete().callAsync(combiner, directExecutor()); assertThat(Thread.interrupted()).isFalse(); futureResult.cancel(true); assertThat(Thread.interrupted()).isFalse(); } @J2ktIncompatible // Wildcard generics
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 134K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/AggregateFuture.java
* handleAllCompleted(), they will already have been nulled out. But in the case of * whenAll*().call*(), this future may be pending until the callback runs -- or even longer in * the case of callAsync(), which waits for the callback's returned future to complete. */ releaseResources(ALL_INPUT_FUTURES_PROCESSED); } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 16K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/Futures.java
* href="https://errorprone.info/bugpattern/FutureReturnValueIgnored">https://errorprone.info/bugpattern/FutureReturnValueIgnored</a>. */ public <C extends @Nullable Object> ListenableFuture<C> callAsync( AsyncCallable<C> combiner, Executor executor) { return new CombinedFuture<>(futures, allMustSucceed, executor, combiner); } /**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)