21
21
import static com .google .common .util .concurrent .Uninterruptibles .getUninterruptibly ;
22
22
import static java .util .Objects .requireNonNull ;
23
23
24
- import com .google .common .annotations .Beta ;
25
24
import com .google .common .annotations .GwtCompatible ;
26
25
import com .google .common .annotations .GwtIncompatible ;
27
26
import com .google .common .annotations .J2ktIncompatible ;
@@ -299,7 +298,6 @@ public void run() {
299
298
* @param executor the executor that runs {@code fallback} if {@code input} fails
300
299
* @since 19.0
301
300
*/
302
- @ Beta
303
301
@ J2ktIncompatible
304
302
@ Partially .GwtIncompatible ("AVAILABLE but requires exceptionType to be Throwable.class" )
305
303
public static <V extends @ Nullable Object , X extends Throwable > ListenableFuture <V > catching (
@@ -365,7 +363,6 @@ public void run() {
365
363
* @param executor the executor that runs {@code fallback} if {@code input} fails
366
364
* @since 19.0 (similar functionality in 14.0 as {@code withFallback})
367
365
*/
368
- @ Beta
369
366
@ J2ktIncompatible
370
367
@ Partially .GwtIncompatible ("AVAILABLE but requires exceptionType to be Throwable.class" )
371
368
public static <V extends @ Nullable Object , X extends Throwable > ListenableFuture <V > catchingAsync (
@@ -387,7 +384,6 @@ public void run() {
387
384
* @param scheduledExecutor The executor service to enforce the timeout.
388
385
* @since 28.0
389
386
*/
390
- @ Beta
391
387
@ J2ktIncompatible
392
388
@ GwtIncompatible // java.util.concurrent.ScheduledExecutorService
393
389
public static <V extends @ Nullable Object > ListenableFuture <V > withTimeout (
@@ -407,7 +403,6 @@ public void run() {
407
403
* @param scheduledExecutor The executor service to enforce the timeout.
408
404
* @since 19.0
409
405
*/
410
- @ Beta
411
406
@ J2ktIncompatible
412
407
@ GwtIncompatible // java.util.concurrent.ScheduledExecutorService
413
408
@ SuppressWarnings ("GoodTime" ) // should accept a java.time.Duration
@@ -454,7 +449,6 @@ public void run() {
454
449
* input's failure (if not)
455
450
* @since 19.0 (in 11.0 as {@code transform})
456
451
*/
457
- @ Beta
458
452
public static <I extends @ Nullable Object , O extends @ Nullable Object >
459
453
ListenableFuture <O > transformAsync (
460
454
ListenableFuture <I > input ,
@@ -492,7 +486,6 @@ ListenableFuture<O> transformAsync(
492
486
* @return A future that holds result of the transformation.
493
487
* @since 9.0 (in 2.0 as {@code compose})
494
488
*/
495
- @ Beta
496
489
public static <I extends @ Nullable Object , O extends @ Nullable Object >
497
490
ListenableFuture <O > transform (
498
491
ListenableFuture <I > input , Function <? super I , ? extends O > function , Executor executor ) {
@@ -519,7 +512,6 @@ ListenableFuture<O> transform(
519
512
* @return A future that returns the result of the transformation.
520
513
* @since 10.0
521
514
*/
522
- @ Beta
523
515
@ J2ktIncompatible
524
516
@ GwtIncompatible // TODO
525
517
public static <I extends @ Nullable Object , O extends @ Nullable Object > Future <O > lazyTransform (
@@ -580,7 +572,6 @@ private O applyTransformation(I input) throws ExecutionException {
580
572
* @return a future that provides a list of the results of the component futures
581
573
* @since 10.0
582
574
*/
583
- @ Beta
584
575
@ SafeVarargs
585
576
public static <V extends @ Nullable Object > ListenableFuture <List <V >> allAsList (
586
577
ListenableFuture <? extends V >... futures ) {
@@ -608,7 +599,6 @@ private O applyTransformation(I input) throws ExecutionException {
608
599
* @return a future that provides a list of the results of the component futures
609
600
* @since 10.0
610
601
*/
611
- @ Beta
612
602
public static <V extends @ Nullable Object > ListenableFuture <List <V >> allAsList (
613
603
Iterable <? extends ListenableFuture <? extends V >> futures ) {
614
604
ListenableFuture <List <@ Nullable V >> nullable =
@@ -627,7 +617,6 @@ private O applyTransformation(I input) throws ExecutionException {
627
617
*
628
618
* @since 20.0
629
619
*/
630
- @ Beta
631
620
@ SafeVarargs
632
621
public static <V extends @ Nullable Object > FutureCombiner <V > whenAllComplete (
633
622
ListenableFuture <? extends V >... futures ) {
@@ -642,7 +631,6 @@ private O applyTransformation(I input) throws ExecutionException {
642
631
*
643
632
* @since 20.0
644
633
*/
645
- @ Beta
646
634
public static <V extends @ Nullable Object > FutureCombiner <V > whenAllComplete (
647
635
Iterable <? extends ListenableFuture <? extends V >> futures ) {
648
636
return new FutureCombiner <V >(false , ImmutableList .copyOf (futures ));
@@ -655,7 +643,6 @@ private O applyTransformation(I input) throws ExecutionException {
655
643
*
656
644
* @since 20.0
657
645
*/
658
- @ Beta
659
646
@ SafeVarargs
660
647
public static <V extends @ Nullable Object > FutureCombiner <V > whenAllSucceed (
661
648
ListenableFuture <? extends V >... futures ) {
@@ -669,7 +656,6 @@ private O applyTransformation(I input) throws ExecutionException {
669
656
*
670
657
* @since 20.0
671
658
*/
672
- @ Beta
673
659
public static <V extends @ Nullable Object > FutureCombiner <V > whenAllSucceed (
674
660
Iterable <? extends ListenableFuture <? extends V >> futures ) {
675
661
return new FutureCombiner <V >(true , ImmutableList .copyOf (futures ));
@@ -701,7 +687,6 @@ private O applyTransformation(I input) throws ExecutionException {
701
687
*
702
688
* @since 20.0
703
689
*/
704
- @ Beta
705
690
@ GwtCompatible
706
691
public static final class FutureCombiner <V extends @ Nullable Object > {
707
692
private final boolean allMustSucceed ;
@@ -863,7 +848,6 @@ protected void afterDone() {
863
848
* @return a future that provides a list of the results of the component futures
864
849
* @since 10.0
865
850
*/
866
- @ Beta
867
851
@ SafeVarargs
868
852
public static <V extends @ Nullable Object > ListenableFuture <List <@ Nullable V >> successfulAsList (
869
853
ListenableFuture <? extends V >... futures ) {
@@ -900,7 +884,6 @@ protected void afterDone() {
900
884
* @return a future that provides a list of the results of the component futures
901
885
* @since 10.0
902
886
*/
903
- @ Beta
904
887
public static <V extends @ Nullable Object > ListenableFuture <List <@ Nullable V >> successfulAsList (
905
888
Iterable <? extends ListenableFuture <? extends V >> futures ) {
906
889
return new ListFuture <V >(ImmutableList .copyOf (futures ), false );
@@ -1246,7 +1229,6 @@ public String toString() {
1246
1229
* does not have a suitable constructor
1247
1230
* @since 19.0 (in 10.0 as {@code get})
1248
1231
*/
1249
- @ Beta
1250
1232
@ CanIgnoreReturnValue
1251
1233
@ J2ktIncompatible
1252
1234
@ GwtIncompatible // reflection
@@ -1299,7 +1281,6 @@ public String toString() {
1299
1281
* does not have a suitable constructor
1300
1282
* @since 28.0
1301
1283
*/
1302
- @ Beta
1303
1284
@ CanIgnoreReturnValue
1304
1285
@ J2ktIncompatible
1305
1286
@ GwtIncompatible // reflection
@@ -1352,7 +1333,6 @@ public String toString() {
1352
1333
* does not have a suitable constructor
1353
1334
* @since 19.0 (in 10.0 as {@code get} and with different parameter order)
1354
1335
*/
1355
- @ Beta
1356
1336
@ CanIgnoreReturnValue
1357
1337
@ J2ktIncompatible
1358
1338
@ GwtIncompatible // reflection
0 commit comments