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