Skip to content

Commit

Permalink
Merge pull request #1224 from daschl/toblocking
Browse files Browse the repository at this point in the history
Implement shorter toBlocking as shorter alias for toBlockingObservable.
  • Loading branch information
benjchristensen committed May 20, 2014
2 parents b56f0a5 + 5996b9d commit 3528e6a
Showing 1 changed file with 12 additions and 0 deletions.
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

0 comments on commit 3528e6a

Please sign in to comment.