File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1080,6 +1080,21 @@ public final Completable compose(CompletableTransformer transformer) {
1080
1080
return to (transformer );
1081
1081
}
1082
1082
1083
+ /**
1084
+ * Returns an Observable which will subscribe to this Completable and once that is completed then
1085
+ * will subscribe to the {@code next} Observable. An error event from this Completable will be
1086
+ * propagated to the downstream subscriber and will result in skipping the subscription of the
1087
+ * Observable.
1088
+ *
1089
+ * @param next the Observable to subscribe after this Completable is completed, not null
1090
+ * @return Observable that composes this Completable and next
1091
+ * @throws NullPointerException if next is null
1092
+ */
1093
+ public final <T > Observable <T > andThen (Observable <T > next ) {
1094
+ requireNonNull (next );
1095
+ return next .delaySubscription (toObservable ());
1096
+ }
1097
+
1083
1098
/**
1084
1099
* Concatenates this Completable with another Completable.
1085
1100
* @param other the other Completable, not null
You can’t perform that action at this time.
0 commit comments