Skip to content

Instantly share code, notes, and snippets.

@amanjeetsingh150
Created September 23, 2018 13:46
Show Gist options
  • Save amanjeetsingh150/a126a5cb944da3ee59769cd4c93dd72a to your computer and use it in GitHub Desktop.
Save amanjeetsingh150/a126a5cb944da3ee59769cd4c93dd72a to your computer and use it in GitHub Desktop.
latLngPublishRelay
.buffer(2)
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Consumer<List<LatLng>>() {
@Override
public void accept(List<LatLng> latLngs) throws Exception {
emission++;
animateCarOnMap(latLngs);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment