Skip to content

Commit 8417645

Browse files
committed
Used 'subscribeOn' instead of 'observeOn'
1 parent 3a23a9b commit 8417645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rxjava-core/src/main/java/rx/Observable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ public static <T> Observable<T> error(Throwable exception) {
599599
* @see <a href="http://msdn.microsoft.com/en-us/library/hh211711(v=vs.103).aspx">MSDN: Observable.Throw Method</a>
600600
*/
601601
public static <T> Observable<T> error(Throwable exception, Scheduler scheduler) {
602-
return Observable.<T> error(exception).observeOn(scheduler);
602+
return Observable.<T> error(exception).subscribeOn(scheduler);
603603
}
604604

605605
/**

0 commit comments

Comments
 (0)