![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.util.concurrent.Futures.class Maven / Gradle / Ivy
???? 4?
K) *+
,
-./
1 23
)
5678
59
5:
;< =>
J?@A F
GH
5I
JK
JL
JM 2N
OP
QR
QST
UW
?Y
Z
?[\
#]^
%_ 2I
J`a
)b
?cd
,e
?f
?g ijk 1l ?m
5noNp
-q
rs
tu
Jv
tvw
>x
Jyz
A){|
D}~
F1
)o??? CallbackListener InnerClasses InCompletionOrderState InCompletionOrderFuture NonCancellationPropagatingFuture FutureCombiner ()V Code LineNumberTable LocalVariableTable this +Lcom/google/common/util/concurrent/Futures; immediateFuture H(Ljava/lang/Object;)Lcom/google/common/util/concurrent/ListenableFuture; typedNull 4Lcom/google/common/util/concurrent/ListenableFuture; value Ljava/lang/Object; LocalVariableTypeTable 9Lcom/google/common/util/concurrent/ListenableFuture; TV;
StackMapTable MethodParameters Signature T(TV;)Lcom/google/common/util/concurrent/ListenableFuture; RuntimeVisibleTypeAnnotations 5Lorg/checkerframework/checker/nullness/qual/Nullable; "RuntimeVisibleParameterAnnotations 6Lcom/google/common/util/concurrent/ParametricNullness; immediateVoidFuture 6()Lcom/google/common/util/concurrent/ListenableFuture; H()Lcom/google/common/util/concurrent/ListenableFuture; immediateFailedFuture K(Ljava/lang/Throwable;)Lcom/google/common/util/concurrent/ListenableFuture; throwable Ljava/lang/Throwable; f(Ljava/lang/Throwable;)Lcom/google/common/util/concurrent/ListenableFuture; immediateCancelledFuture instance HLcom/google/common/util/concurrent/ListenableFuture; Q()Lcom/google/common/util/concurrent/ListenableFuture; submit t(Ljava/util/concurrent/Callable;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture; callable Ljava/util/concurrent/Callable; executor Ljava/util/concurrent/Executor; task ?Lcom/google/common/util/concurrent/TrustedListenableFutureTask; $Ljava/util/concurrent/Callable; DLcom/google/common/util/concurrent/TrustedListenableFutureTask; ?(Ljava/util/concurrent/Callable;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture; i(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture; runnable Ljava/lang/Runnable; QLcom/google/common/util/concurrent/TrustedListenableFutureTask; {(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture; submitAsync ?(Lcom/google/common/util/concurrent/AsyncCallable;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture; 1Lcom/google/common/util/concurrent/AsyncCallable; 6Lcom/google/common/util/concurrent/AsyncCallable; ?(Lcom/google/common/util/concurrent/AsyncCallable;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture;
scheduleAsync ?(Lcom/google/common/util/concurrent/AsyncCallable;Ljava/time/Duration;Ljava/util/concurrent/ScheduledExecutorService;)Lcom/google/common/util/concurrent/ListenableFuture; delay Ljava/time/Duration; executorService /Ljava/util/concurrent/ScheduledExecutorService; ?(Lcom/google/common/util/concurrent/AsyncCallable;Ljava/time/Duration;Ljava/util/concurrent/ScheduledExecutorService;)Lcom/google/common/util/concurrent/ListenableFuture; RuntimeInvisibleAnnotations 0Lcom/google/common/annotations/J2ktIncompatible; /Lcom/google/common/annotations/GwtIncompatible; ?(Lcom/google/common/util/concurrent/AsyncCallable;JLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/ScheduledExecutorService;)Lcom/google/common/util/concurrent/ListenableFuture; J timeUnit Ljava/util/concurrent/TimeUnit; scheduled Ljava/util/concurrent/Future; Ljava/util/concurrent/Future<*>; ?(Lcom/google/common/util/concurrent/AsyncCallable;JLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/ScheduledExecutorService;)Lcom/google/common/util/concurrent/ListenableFuture; catching ?(Lcom/google/common/util/concurrent/ListenableFuture;Ljava/lang/Class;Lcom/google/common/base/Function;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture; input
exceptionType Ljava/lang/Class; fallback !Lcom/google/common/base/Function; :Lcom/google/common/util/concurrent/ListenableFuture<+TV;>; Ljava/lang/Class; +Lcom/google/common/base/Function<-TX;+TV;>;(Lcom/google/common/util/concurrent/ListenableFuture<+TV;>;Ljava/lang/Class;Lcom/google/common/base/Function<-TX;+TV;>;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture;? GwtIncompatible =Lcom/google/common/util/concurrent/Partially$GwtIncompatible; :AVAILABLE but requires exceptionType to be Throwable.class
catchingAsync ?(Lcom/google/common/util/concurrent/ListenableFuture;Ljava/lang/Class;Lcom/google/common/util/concurrent/AsyncFunction;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture; 1Lcom/google/common/util/concurrent/AsyncFunction; ;Lcom/google/common/util/concurrent/AsyncFunction<-TX;+TV;>;(Lcom/google/common/util/concurrent/ListenableFuture<+TV;>;Ljava/lang/Class;Lcom/google/common/util/concurrent/AsyncFunction<-TX;+TV;>;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture; withTimeout ?(Lcom/google/common/util/concurrent/ListenableFuture;Ljava/time/Duration;Ljava/util/concurrent/ScheduledExecutorService;)Lcom/google/common/util/concurrent/ListenableFuture; delegate time scheduledExecutor ?(Lcom/google/common/util/concurrent/ListenableFuture;Ljava/time/Duration;Ljava/util/concurrent/ScheduledExecutorService;)Lcom/google/common/util/concurrent/ListenableFuture; ?(Lcom/google/common/util/concurrent/ListenableFuture;JLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/ScheduledExecutorService;)Lcom/google/common/util/concurrent/ListenableFuture; unit ?(Lcom/google/common/util/concurrent/ListenableFuture;JLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/ScheduledExecutorService;)Lcom/google/common/util/concurrent/ListenableFuture; transformAsync ?(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/util/concurrent/AsyncFunction;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture; function 9Lcom/google/common/util/concurrent/ListenableFuture; ;Lcom/google/common/util/concurrent/AsyncFunction<-TI;+TO;>; ?(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/util/concurrent/AsyncFunction<-TI;+TO;>;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture; transform ?(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/base/Function;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture; +Lcom/google/common/base/Function<-TI;+TO;>; ?(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/base/Function<-TI;+TO;>;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture;
lazyTransform ](Ljava/util/concurrent/Future;Lcom/google/common/base/Function;)Ljava/util/concurrent/Future; "Ljava/util/concurrent/Future; ?(Ljava/util/concurrent/Future;Lcom/google/common/base/Function<-TI;+TO;>;)Ljava/util/concurrent/Future; allAsList k([Lcom/google/common/util/concurrent/ListenableFuture;)Lcom/google/common/util/concurrent/ListenableFuture; futures 5[Lcom/google/common/util/concurrent/ListenableFuture; nullable nonNull ;[Lcom/google/common/util/concurrent/ListenableFuture<+TV;>; KLcom/google/common/util/concurrent/ListenableFuture;>; ?([Lcom/google/common/util/concurrent/ListenableFuture<+TV;>;)Lcom/google/common/util/concurrent/ListenableFuture;>; RuntimeVisibleAnnotations Ljava/lang/SafeVarargs; J(Ljava/lang/Iterable;)Lcom/google/common/util/concurrent/ListenableFuture; Ljava/lang/Iterable; QLjava/lang/Iterable<+Lcom/google/common/util/concurrent/ListenableFuture<+TV;>;>; ?(Ljava/lang/Iterable<+Lcom/google/common/util/concurrent/ListenableFuture<+TV;>;>;)Lcom/google/common/util/concurrent/ListenableFuture;>; whenAllComplete q([Lcom/google/common/util/concurrent/ListenableFuture;)Lcom/google/common/util/concurrent/Futures$FutureCombiner; ?([Lcom/google/common/util/concurrent/ListenableFuture<+TV;>;)Lcom/google/common/util/concurrent/Futures$FutureCombiner; P(Ljava/lang/Iterable;)Lcom/google/common/util/concurrent/Futures$FutureCombiner; ?(Ljava/lang/Iterable<+Lcom/google/common/util/concurrent/ListenableFuture<+TV;>;>;)Lcom/google/common/util/concurrent/Futures$FutureCombiner; whenAllSucceed nonCancellationPropagating j(Lcom/google/common/util/concurrent/ListenableFuture;)Lcom/google/common/util/concurrent/ListenableFuture; future output LLcom/google/common/util/concurrent/Futures$NonCancellationPropagatingFuture; QLcom/google/common/util/concurrent/Futures$NonCancellationPropagatingFuture; ?(Lcom/google/common/util/concurrent/ListenableFuture;)Lcom/google/common/util/concurrent/ListenableFuture; successfulAsList inCompletionOrder ?(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableList; i I localI copy state BLcom/google/common/util/concurrent/Futures$InCompletionOrderState; delegatesBuilder? Builder 1Lcom/google/common/collect/ImmutableList$Builder; delegates )Lcom/google/common/collect/ImmutableList;
delegatesCast QLjava/lang/Iterable<+Lcom/google/common/util/concurrent/ListenableFuture<+TT;>;>; ;[Lcom/google/common/util/concurrent/ListenableFuture<+TT;>; GLcom/google/common/util/concurrent/Futures$InCompletionOrderState; jLcom/google/common/collect/ImmutableList$Builder;>; bLcom/google/common/collect/ImmutableList;>; dLcom/google/common/collect/ImmutableList;>;?? ?(Ljava/lang/Iterable<+Lcom/google/common/util/concurrent/ListenableFuture<+TT;>;>;)Lcom/google/common/collect/ImmutableList;>; gwtCompatibleToArray K(Ljava/lang/Iterable;)[Lcom/google/common/util/concurrent/ListenableFuture;
collection Ljava/util/Collection; RLjava/util/Collection;>; ?(Ljava/lang/Iterable<+Lcom/google/common/util/concurrent/ListenableFuture<+TT;>;>;)[Lcom/google/common/util/concurrent/ListenableFuture<+TT;>; addCallback ?(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/util/concurrent/FutureCallback;Ljava/util/concurrent/Executor;)V callback 2Lcom/google/common/util/concurrent/FutureCallback; 8Lcom/google/common/util/concurrent/FutureCallback<-TV;>; ?(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/util/concurrent/FutureCallback<-TV;>;Ljava/util/concurrent/Executor;)V getDone 1(Ljava/util/concurrent/Future;)Ljava/lang/Object; "Ljava/util/concurrent/Future;
Exceptions =(Ljava/util/concurrent/Future;)TV; 8Lcom/google/errorprone/annotations/CanIgnoreReturnValue;
getChecked B(Ljava/util/concurrent/Future;Ljava/lang/Class;)Ljava/lang/Object; exceptionClass? n(Ljava/util/concurrent/Future;Ljava/lang/Class;)TV;^TX; V(Ljava/util/concurrent/Future;Ljava/lang/Class;Ljava/time/Duration;)Ljava/lang/Object; timeout ?(Ljava/util/concurrent/Future;Ljava/lang/Class;Ljava/time/Duration;)TV;^TX; b(Ljava/util/concurrent/Future;Ljava/lang/Class;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object; ?(Ljava/util/concurrent/Future;Ljava/lang/Class;JLjava/util/concurrent/TimeUnit;)TV;^TX; getUnchecked e )Ljava/util/concurrent/ExecutionException; wrapAndThrowUnchecked (Ljava/lang/Throwable;)V cause lambda$inCompletionOrder$1 o(Lcom/google/common/util/concurrent/Futures$InCompletionOrderState;Lcom/google/common/collect/ImmutableList;I)V lambda$scheduleAsync$0 (Ljava/util/concurrent/Future;)V
SourceFile Futures.java CLcom/google/common/util/concurrent/ElementTypesAreNonnullByDefault; -Lcom/google/common/annotations/GwtCompatible; emulated R S? \ 1com/google/common/util/concurrent/ImmediateFuture R???? Gcom/google/common/util/concurrent/ImmediateFuture$ImmediateFailedFuture ImmediateFailedFuture R?? Jcom/google/common/util/concurrent/ImmediateFuture$ImmediateCancelledFuture ImmediateCancelledFuture??????????????? ? ? ???? BootstrapMethods? S?????????? ?? ? ? ????? ??? ?? ? +com/google/common/util/concurrent/Futures$1 R?? =com/google/common/util/concurrent/CollectionFuture$ListFuture
ListFuture?? R?? ? 8com/google/common/util/concurrent/Futures$FutureCombiner R? Jcom/google/common/util/concurrent/Futures$NonCancellationPropagatingFuture R? ? ? @com/google/common/util/concurrent/Futures$InCompletionOrderState R??? Acom/google/common/util/concurrent/Futures$InCompletionOrderFuture R???????? java/util/Collection 2com/google/common/util/concurrent/ListenableFuture?? :com/google/common/util/concurrent/Futures$CallbackListener R?? "Future was expected to be done: %s????
? 'java/util/concurrent/ExecutionException?? java/lang/AssertionError java/lang/Error 0com/google/common/util/concurrent/ExecutionError R? =com/google/common/util/concurrent/UncheckedExecutionException? ?? )com/google/common/util/concurrent/Futures Bcom/google/common/util/concurrent/GwtFuturesCatchingSpecialization? ;com/google/common/util/concurrent/Partially$GwtIncompatible /com/google/common/collect/ImmutableList$Builder java/lang/Iterable 'com/google/common/collect/ImmutableList java/lang/Exception NULL (Ljava/lang/Object;)V $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; INSTANCE LLcom/google/common/util/concurrent/ImmediateFuture$ImmediateCancelledFuture; =com/google/common/util/concurrent/TrustedListenableFutureTask create `(Ljava/util/concurrent/Callable;)Lcom/google/common/util/concurrent/TrustedListenableFutureTask; java/util/concurrent/Executor execute (Ljava/lang/Runnable;)V g(Ljava/lang/Runnable;Ljava/lang/Object;)Lcom/google/common/util/concurrent/TrustedListenableFutureTask; r(Lcom/google/common/util/concurrent/AsyncCallable;)Lcom/google/common/util/concurrent/TrustedListenableFutureTask; *com/google/common/util/concurrent/Internal toNanosSaturated (Ljava/time/Duration;)J java/util/concurrent/TimeUnit NANOSECONDS -java/util/concurrent/ScheduledExecutorService schedule \(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
??
J? run 3(Ljava/util/concurrent/Future;)Ljava/lang/Runnable; /com/google/common/util/concurrent/MoreExecutors directExecutor !()Ljava/util/concurrent/Executor; addListener 6(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V 8com/google/common/util/concurrent/AbstractCatchingFuture isDone ()Z /com/google/common/util/concurrent/TimeoutFuture 9com/google/common/util/concurrent/AbstractTransformFuture A(Ljava/util/concurrent/Future;Lcom/google/common/base/Function;)V 2com/google/common/util/concurrent/CollectionFuture copyOf >([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList; 3(Lcom/google/common/collect/ImmutableCollection;Z)V Z(ZLcom/google/common/collect/ImmutableList;Lcom/google/common/util/concurrent/Futures$1;)V 7(Lcom/google/common/util/concurrent/ListenableFuture;)V e([Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/util/concurrent/Futures$1;)V builderWithExpectedSize 4(I)Lcom/google/common/collect/ImmutableList$Builder; r(Lcom/google/common/util/concurrent/Futures$InCompletionOrderState;Lcom/google/common/util/concurrent/Futures$1;)V add E(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList$Builder; build +()Lcom/google/common/collect/ImmutableList;
J? ?(Lcom/google/common/util/concurrent/Futures$InCompletionOrderState;Lcom/google/common/collect/ImmutableList;I)Ljava/lang/Runnable; toArray (([Ljava/lang/Object;)[Ljava/lang/Object; R(Ljava/util/concurrent/Future;Lcom/google/common/util/concurrent/FutureCallback;)V java/util/concurrent/Future
checkState ((ZLjava/lang/String;Ljava/lang/Object;)V 2com/google/common/util/concurrent/Uninterruptibles getUninterruptibly 3com/google/common/util/concurrent/FuturesGetChecked getCause ()Ljava/lang/Throwable; (Ljava/lang/Error;)V
access$600 cancel (Z)Z +com/google/common/util/concurrent/Partially???!" "java/lang/invoke/LambdaMetafactory metafactory? Lookup ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;? %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles 1 J K % R S T / *? ? U V W X Y Z T x *? ? L+?? Y*? ? U ? ? ?
? V [ \ ] ^ _ [ ` ] a b
c ] d e f
g h i j k T / ? ? U ? f
G g d l f
g m n T <