Skip to content

Commit

Permalink
Merge pull request #1625 from jbripley/rxscala-deprecate-scheduled-me…
Browse files Browse the repository at this point in the history
…thods

RxScala: Mark superfluous from/empty methods with scheduler parameter as...
  • Loading branch information
benjchristensen committed Aug 26, 2014
2 parents 6557dac + d7895b8 commit 85d8a95
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4429,7 +4429,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 @@ -4467,7 +4469,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 85d8a95

Please sign in to comment.