0.12.0
This version adds to the static typing changes in 0.11 and adds covariant/contravariant typing via super/extends generics.
Additional cleanup was done, particularly related to BlockingObservable
. Also the window
operator was added.
The largest breaking change is that Observable.create
now accepts an OnSubscribeFunc
rather than a Func1
.
This means that instead of this:
public static <T> Observable<T> create(Func1<? super Observer<? super T>, ? extends Subscription> func)
it is now:
public static <T> Observable<T> create(OnSubscribeFunc<T> func)
This was done to simplify the usage of Observable.create
which was already verbose but made far worse by the ? super
generics.
For example, instead of writing this:
Observable.create(new Func1<Observer<? super SomeType>, Subscription>() {
/// body here
}
it is now written as:
Observable.create(new OnSubscribeFunc<SomeType>() {
/// body here
}
- Pull 343 Covariant Support with super/extends and
OnSubscribeFunc
as type forObservable.create
- Pull 337 Operator:
window
- Pull 348 Rename
switchDo
toswitchOnNext
(deprecateswitchDo
for eventual deletion) - Pull 348 Delete
switchDo
instance method in preference for static - Pull 346 Remove duplicate static methods from
BlockingObservable
- Pull 346
BlockingObservable
no longer extends fromObservable
- Pull 345 Remove unnecessary constructor from
Observable
Artifacts: Maven Central