RxJava: Difference between revisions
Jump to navigation
Jump to search
| Line 32: | Line 32: | ||
void onNext(T t) | void onNext(T t) | ||
void onSubscribe(Subscription s) | void onSubscribe(Subscription s) | ||
} | |||
note top of Subscription | |||
A Subscription represents a | |||
one-to-one lifecycle of a Subscriber | |||
subscribing to a Publisher. | |||
It can only be used once by a single Subscriber. | |||
It is used to both signal desire for data | |||
and cancel demand (and allow resource cleanup). | |||
see [[https://www.reactive-streams.org/reactive-streams-1.0.0-javadoc/org/reactivestreams/Subscription.html javadoc]] | |||
end note | |||
interface Subscription { | |||
void cancel() | |||
void request(long n) | |||
} | } | ||
} | } | ||
Revision as of 12:59, 2 March 2020
Click here to comment see Self Driving RC Car
github
Versions
RxJava 3
3.0.0 was released 2020-02-14
- https://mvnrepository.com/artifact/io.reactivex.rxjava3/rxjava
- https://github.com/ReactiveX/RxJava/wiki/What's-different-in-3.0
RxJava 2
2.0.0 was released 2016-11-29 there will be bugfixes until 2021-02-28
- https://mvnrepository.com/artifact/io.reactivex.rxjava2/rxjava
- https://github.com/ReactiveX/RxJava/wiki/What%27s-different-in-2.0
- https://blog.kaush.co/2017/06/21/rxjava1-rxjava2-migration-understanding-changes/

RxJava 1
1.0.0 was released 2014-11

Links
- https://vertx.io/docs/vertx-rx/java/
- https://github.com/ReactiveX/RxJava/wiki/How-To-Use-RxJava
- http://reactivex.io/RxJava/javadoc/io/reactivex/Observable.html
- https://github.com/ReactiveX/RxJava/wiki/Backpressure
- Not so obvious things about rxjava
- https://github.com/ReactiveX/RxJava/wiki/Creating-Observables
- http://akarnokd.blogspot.com/2016/03/operator-fusion-part-1.html
- https://www.littlerobots.nl/blog/Note-to-self-RxJava-SyncOnSubscribe/
- https://pedroo21.github.io/RxJava/