Skip to content

Commit 4a74415

Browse files
authored
2.x: Add missing Completable marbles (07/18a) (#6090)
1 parent fd4b614 commit 4a74415

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

src/main/java/io/reactivex/Completable.java

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,8 @@ private static NullPointerException toNpe(Throwable ex) {
903903
* Returns a Completable instance which manages a resource along
904904
* with a custom Completable instance while the subscription is active.
905905
* <p>
906+
* <img width="640" height="388" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.using.png" alt="">
907+
* <p>
906908
* This overload disposes eagerly before the terminal event is emitted.
907909
* <dl>
908910
* <dt><b>Scheduler:</b></dt>
@@ -927,6 +929,8 @@ public static <R> Completable using(Callable<R> resourceSupplier,
927929
* with a custom Completable instance while the subscription is active and performs eager or lazy
928930
* resource disposition.
929931
* <p>
932+
* <img width="640" height="332" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.using.b.png" alt="">
933+
* <p>
930934
* If this overload performs a lazy cancellation after the terminal event is emitted.
931935
* Exceptions thrown at this time will be delivered to RxJavaPlugins only.
932936
* <dl>
@@ -959,6 +963,8 @@ public static <R> Completable using(
959963
/**
960964
* Wraps the given CompletableSource into a Completable
961965
* if not already Completable.
966+
* <p>
967+
* <img width="640" height="354" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.wrap.png" alt="">
962968
* <dl>
963969
* <dt><b>Scheduler:</b></dt>
964970
* <dd>{@code wrap} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -980,6 +986,8 @@ public static Completable wrap(CompletableSource source) {
980986
/**
981987
* Returns a Completable that emits the a terminated event of either this Completable
982988
* or the other Completable whichever fires first.
989+
* <p>
990+
* <img width="640" height="484" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.ambWith.png" alt="">
983991
* <dl>
984992
* <dt><b>Scheduler:</b></dt>
985993
* <dd>{@code ambWith} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -1001,6 +1009,8 @@ public final Completable ambWith(CompletableSource other) {
10011009
* will subscribe to the {@code next} ObservableSource. An error event from this Completable will be
10021010
* propagated to the downstream subscriber and will result in skipping the subscription of the
10031011
* Observable.
1012+
* <p>
1013+
* <img width="640" height="278" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.andThen.o.png" alt="">
10041014
* <dl>
10051015
* <dt><b>Scheduler:</b></dt>
10061016
* <dd>{@code andThen} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -1022,6 +1032,8 @@ public final <T> Observable<T> andThen(ObservableSource<T> next) {
10221032
* will subscribe to the {@code next} Flowable. An error event from this Completable will be
10231033
* propagated to the downstream subscriber and will result in skipping the subscription of the
10241034
* Publisher.
1035+
* <p>
1036+
* <img width="640" height="249" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.andThen.p.png" alt="">
10251037
* <dl>
10261038
* <dt><b>Backpressure:</b></dt>
10271039
* <dd>The returned {@code Flowable} honors the backpressure of the downstream consumer
@@ -1047,6 +1059,8 @@ public final <T> Flowable<T> andThen(Publisher<T> next) {
10471059
* will subscribe to the {@code next} SingleSource. An error event from this Completable will be
10481060
* propagated to the downstream subscriber and will result in skipping the subscription of the
10491061
* Single.
1062+
* <p>
1063+
* <img width="640" height="437" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.andThen.s.png" alt="">
10501064
* <dl>
10511065
* <dt><b>Scheduler:</b></dt>
10521066
* <dd>{@code andThen} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -1068,6 +1082,8 @@ public final <T> Single<T> andThen(SingleSource<T> next) {
10681082
* will subscribe to the {@code next} MaybeSource. An error event from this Completable will be
10691083
* propagated to the downstream subscriber and will result in skipping the subscription of the
10701084
* Maybe.
1085+
* <p>
1086+
* <img width="640" height="280" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.andThen.m.png" alt="">
10711087
* <dl>
10721088
* <dt><b>Scheduler:</b></dt>
10731089
* <dd>{@code andThen} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -1088,6 +1104,8 @@ public final <T> Maybe<T> andThen(MaybeSource<T> next) {
10881104
* Returns a Completable that first runs this Completable
10891105
* and then the other completable.
10901106
* <p>
1107+
* <img width="640" height="437" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.andThen.c.png" alt="">
1108+
* <p>
10911109
* This is an alias for {@link #concatWith(CompletableSource)}.
10921110
* <dl>
10931111
* <dt><b>Scheduler:</b></dt>
@@ -1106,6 +1124,8 @@ public final Completable andThen(CompletableSource next) {
11061124
/**
11071125
* Calls the specified converter function during assembly time and returns its resulting value.
11081126
* <p>
1127+
* <img width="640" height="751" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.as.png" alt="">
1128+
* <p>
11091129
* This allows fluent conversion to any other type.
11101130
* <dl>
11111131
* <dt><b>Scheduler:</b></dt>
@@ -1128,6 +1148,8 @@ public final <R> R as(@NonNull CompletableConverter<? extends R> converter) {
11281148
/**
11291149
* Subscribes to and awaits the termination of this Completable instance in a blocking manner and
11301150
* rethrows any exception emitted.
1151+
* <p>
1152+
* <img width="640" height="432" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.blockingAwait.png" alt="">
11311153
* <dl>
11321154
* <dt><b>Scheduler:</b></dt>
11331155
* <dd>{@code blockingAwait} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -1148,6 +1170,8 @@ public final void blockingAwait() {
11481170
/**
11491171
* Subscribes to and awaits the termination of this Completable instance in a blocking manner
11501172
* with a specific timeout and rethrows any exception emitted within the timeout window.
1173+
* <p>
1174+
* <img width="640" height="348" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.blockingAwait.t.png" alt="">
11511175
* <dl>
11521176
* <dt><b>Scheduler:</b></dt>
11531177
* <dd>{@code blockingAwait} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -1174,6 +1198,8 @@ public final boolean blockingAwait(long timeout, TimeUnit unit) {
11741198
/**
11751199
* Subscribes to this Completable instance and blocks until it terminates, then returns null or
11761200
* the emitted exception if any.
1201+
* <p>
1202+
* <img width="640" height="435" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.blockingGet.png" alt="">
11771203
* <dl>
11781204
* <dt><b>Scheduler:</b></dt>
11791205
* <dd>{@code blockingGet} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -1192,6 +1218,8 @@ public final Throwable blockingGet() {
11921218
/**
11931219
* Subscribes to this Completable instance and blocks until it terminates or the specified timeout
11941220
* elapses, then returns null for normal termination or the emitted exception if any.
1221+
* <p>
1222+
* <img width="640" height="348" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.blockingGet.t.png" alt="">
11951223
* <dl>
11961224
* <dt><b>Scheduler:</b></dt>
11971225
* <dd>{@code blockingGet} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -1216,6 +1244,8 @@ public final Throwable blockingGet(long timeout, TimeUnit unit) {
12161244
* subscribes to the result Completable, caches its terminal event
12171245
* and relays/replays it to observers.
12181246
* <p>
1247+
* <img width="640" height="375" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.cache.png" alt="">
1248+
* <p>
12191249
* Note that this operator doesn't allow disposing the connection
12201250
* of the upstream source.
12211251
* <dl>
@@ -1235,6 +1265,8 @@ public final Completable cache() {
12351265
/**
12361266
* Calls the given transformer function with this instance and returns the function's resulting
12371267
* Completable.
1268+
* <p>
1269+
* <img width="640" height="625" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.compose.png" alt="">
12381270
* <dl>
12391271
* <dt><b>Scheduler:</b></dt>
12401272
* <dd>{@code compose} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -2308,6 +2340,8 @@ private Completable timeout0(long timeout, TimeUnit unit, Scheduler scheduler, C
23082340

23092341
/**
23102342
* Allows fluent conversion to another type via a function callback.
2343+
* <p>
2344+
* <img width="640" height="751" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.to.png" alt="">
23112345
* <dl>
23122346
* <dt><b>Scheduler:</b></dt>
23132347
* <dd>{@code to} does not operate by default on a particular {@link Scheduler}.</dd>

0 commit comments

Comments
 (0)