public interface IObservable<T> extends ObservableSource<T>
Observable
form.
Ideally, `io.reactivex.Observable` would be an interface, which would make this interface unnecessary. But
so long as it isn't, this (combined with Rx
) makes it fairly seamless to fix this.Modifier and Type | Method and Description |
---|---|
Observable<T> |
asObservable() |
default void |
subscribe(Observer<? super T> observer) |
static <T> IObservable<T> |
wrap(Observable<T> observable)
Wraps an actual observable as an IObservable.
|
Observable<T> asObservable()
default void subscribe(Observer<? super T> observer)
subscribe
in interface ObservableSource<T>
static <T> IObservable<T> wrap(Observable<T> observable)