Skip to content

Commit

Permalink
Used 'subscribeOn' instead of 'observeOn'
Browse files Browse the repository at this point in the history
  • Loading branch information
zsxwing committed Oct 9, 2013
1 parent 3a23a9b commit 8417645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rxjava-core/src/main/java/rx/Observable.java
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ public static <T> Observable<T> error(Throwable exception) {
* @see <a href="http://msdn.microsoft.com/en-us/library/hh211711(v=vs.103).aspx">MSDN: Observable.Throw Method</a>
*/
public static <T> Observable<T> error(Throwable exception, Scheduler scheduler) {
return Observable.<T> error(exception).observeOn(scheduler);
return Observable.<T> error(exception).subscribeOn(scheduler);
}

/**
Expand Down

0 comments on commit 8417645

Please sign in to comment.