File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
language-adaptors/rxjava-scala/src/main/scala/rx/lang/scala Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -4429,7 +4429,9 @@ object Observable {
44294429 * @param scheduler the Scheduler on which to call `onError`
44304430 * @tparam T the type of the items (ostensibly) emitted by the Observable
44314431 * @return an Observable that invokes the `Observer`'s `onError` method, on the specified Scheduler
4432+ * @deprecated use `#subscribeOn` to schedule
44324433 */
4434+ @ deprecated(" Use with `error(Throwable).subscribeOn` instead" , " 0.20" )
44334435 def error [T ](exception : Throwable , scheduler : Scheduler ): Observable [T ] = {
44344436 toScalaObservable[T ](rx.Observable .error(exception, scheduler))
44354437 }
@@ -4467,7 +4469,9 @@ object Observable {
44674469 * specified scheduler
44684470 * @see <a href="https://github.com/Netflix/RxJava/wiki/Creating-Observables#empty-error-and-never">RxJava Wiki: empty()</a>
44694471 * @see <a href="http://msdn.microsoft.com/en-us/library/hh229066.aspx">MSDN: Observable.Empty Method (IScheduler)</a>
4472+ * @deprecated use `#subscribeOn` to schedule
44704473 */
4474+ @ deprecated(" Use `empty.subscribeOn` instead" , " 0.20" )
44714475 def empty (scheduler : Scheduler ): Observable [Nothing ] = {
44724476 toScalaObservable(rx.Observable .empty[Nothing ](scalaSchedulerToJavaScheduler(scheduler)))
44734477 }
You can’t perform that action at this time.
0 commit comments