An example of using RxJava to periodically poll a remote service. Demonstrated:
The service returns a JSON array of data which we coalesce into a stream of individual items.
Handling connection errors.
Unit testing the polling mechanism.
Running the example
The example requires an internet connection and an API key for Mockaroo. Create a
gradle.properties file that looks like this:
Running the tests
The tests do not require any internet connection or access to Mockaroo.