Skip to content

Commit

Permalink
Merge pull request #9 from zsxwing/rxjava-1625
Browse files Browse the repository at this point in the history
Apply RxJava #1625 manually
  • Loading branch information
zsxwing committed Aug 27, 2014
2 parents 9894b15 + 46d3c2a commit 8223de1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/scala/rx/lang/scala/Observable.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4435,7 +4435,9 @@ object Observable {
* @param scheduler the Scheduler on which to call `onError`
* @tparam T the type of the items (ostensibly) emitted by the Observable
* @return an Observable that invokes the `Observer`'s `onError` method, on the specified Scheduler
* @deprecated use `#subscribeOn` to schedule
*/
@deprecated("Use with `error(Throwable).subscribeOn` instead", "0.20")
def error[T](exception: Throwable, scheduler: Scheduler): Observable[T] = {
toScalaObservable[T](rx.Observable.error(exception, scheduler))
}
Expand Down Expand Up @@ -4473,7 +4475,9 @@ object Observable {
* specified scheduler
* @see <a href="https://github.com/Netflix/RxJava/wiki/Creating-Observables#empty-error-and-never">RxJava Wiki: empty()</a>
* @see <a href="http://msdn.microsoft.com/en-us/library/hh229066.aspx">MSDN: Observable.Empty Method (IScheduler)</a>
* @deprecated use `#subscribeOn` to schedule
*/
@deprecated("Use `empty.subscribeOn` instead", "0.20")
def empty(scheduler: Scheduler): Observable[Nothing] = {
toScalaObservable(rx.Observable.empty[Nothing](scalaSchedulerToJavaScheduler(scheduler)))
}
Expand Down

0 comments on commit 8223de1

Please sign in to comment.