Skip to content

Implement shorter toBlocking as shorter alias for toBlockingObservable. #1224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 20, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions rxjava-core/src/main/java/rx/Observable.java
Original file line number Diff line number Diff line change
Expand Up @@ -7039,6 +7039,18 @@ public final BlockingObservable<T> toBlockingObservable() {
return BlockingObservable.from(this);
}

/**
* Converts an Observable into a {@link BlockingObservable} (an Observable with blocking operators).
*
* This method is an alias for {@link #toBlockingObservable()}.
*
* @return a {@code BlockingObservable} version of this Observable
* @see <a href="https://github.com/Netflix/RxJava/wiki/Blocking-Observable-Operators">RxJava Wiki: Blocking Observable Observers</a>
*/
public final BlockingObservable<T> toBlocking() {
return toBlockingObservable();
}

/**
* Returns an Observable that emits a single item, a list composed of all the items emitted by the source
* Observable.
Expand Down