This repository has been archived by the owner on Oct 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Ean Lombardo edited this page Jun 2, 2016
·
5 revisions
ReactiveCaffeine is a library that contains all sorts of things to make RXJava easier to use.
ReactiveCaffeine is code meant for production purposes, for tests you should take a look at ReactiveCaffeineTesting
- DisposeBag - Javadoc - Wiki
- DisposeBag makes handling unsubscription of groups of Subscriptions easy. It allows you to add all of the Subscriptions and dispose of all of them easily. DisposeBag is re-usable and only holds on to subscriptions via weak references so you never have to worry about large subscribers living on and taking up valuable memory.
- ObservableBuilder - Javadoc - Wiki
- Sometimes you just need an Observable that emits 6 items, sleeps 30 seconds and errors out. Normally you would have to use Observable.create and write all the code out for this. Or you can just use ObservableBuilder, which allows you to build Observables thati do exactly what you want. It's perfect for building up Observables that need to do something odd for testing purposes, or exploratory coding.
For more information on using ReactiveCaffeineTesting see the Javadoc or the Wiki
Gradle
repositories {
jcenter()
}
dependencies {
compile 'reactive-caffeine:reactive-caffeine:1.0.0'
}
Maven
<dependency>
<groupId>reactive-caffeine</groupId>
<artifactId>reactive-caffeine</artifactId>
<version>1.0.0</version>
</dependency>
ReactiveCaffeine should work just fine on Java 7, or Android from API levels 8 and up