Skip to content

Commit

Permalink
2.x: Several more Completable marbles (7/19b) (#6098)
Browse files Browse the repository at this point in the history
  • Loading branch information
akarnokd authored Jul 19, 2018
1 parent 8b97408 commit a80b657
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/java/io/reactivex/Completable.java
Original file line number Diff line number Diff line change
Expand Up @@ -2230,6 +2230,8 @@ public final Disposable subscribe(final Action onComplete) {
/**
* Returns a Completable which subscribes the child subscriber on the specified scheduler, making
* sure the subscription side-effects happen on that specific thread of the scheduler.
* <p>
* <img width="640" height="686" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.subscribeOn.png" alt="">
* <dl>
* <dt><b>Scheduler:</b></dt>
* <dd>{@code subscribeOn} operates on a {@link Scheduler} you specify.</dd>
Expand Down Expand Up @@ -2405,6 +2407,8 @@ public final <U> U to(Function<? super Completable, U> converter) {
/**
* Returns a Flowable which when subscribed to subscribes to this Completable and
* relays the terminal events to the subscriber.
* <p>
* <img width="640" height="585" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.toFlowable.png" alt="">
* <dl>
* <dt><b>Backpressure:</b></dt>
* <dd>The returned {@code Flowable} honors the backpressure of the downstream consumer.</dd>
Expand All @@ -2427,6 +2431,8 @@ public final <T> Flowable<T> toFlowable() {

/**
* Converts this Completable into a {@link Maybe}.
* <p>
* <img width="640" height="585" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.toMaybe.png" alt="">
* <dl>
* <dt><b>Scheduler:</b></dt>
* <dd>{@code toMaybe} does not operate by default on a particular {@link Scheduler}.</dd>
Expand Down Expand Up @@ -2471,6 +2477,8 @@ public final <T> Observable<T> toObservable() {
/**
* Converts this Completable into a Single which when this Completable completes normally,
* calls the given supplier and emits its returned value through onSuccess.
* <p>
* <img width="640" height="583" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.toSingle.png" alt="">
* <dl>
* <dt><b>Scheduler:</b></dt>
* <dd>{@code toSingle} does not operate by default on a particular {@link Scheduler}.</dd>
Expand All @@ -2490,6 +2498,8 @@ public final <T> Single<T> toSingle(final Callable<? extends T> completionValueS
/**
* Converts this Completable into a Single which when this Completable completes normally,
* emits the given value through onSuccess.
* <p>
* <img width="640" height="583" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.toSingleDefault.png" alt="">
* <dl>
* <dt><b>Scheduler:</b></dt>
* <dd>{@code toSingleDefault} does not operate by default on a particular {@link Scheduler}.</dd>
Expand All @@ -2509,6 +2519,8 @@ public final <T> Single<T> toSingleDefault(final T completionValue) {
/**
* Returns a Completable which makes sure when a subscriber cancels the subscription, the
* dispose is called on the specified scheduler.
* <p>
* <img width="640" height="716" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.unsubscribeOn.png" alt="">
* <dl>
* <dt><b>Scheduler:</b></dt>
* <dd>{@code unsubscribeOn} calls dispose() of the upstream on the {@link Scheduler} you specify.</dd>
Expand Down

0 comments on commit a80b657

Please sign in to comment.