Skip to content

Instantly share code, notes, and snippets.

@michaelzengke
Created October 20, 2016 18:24
Show Gist options
  • Save michaelzengke/c9e82b62fdbed0b609be482c8e997797 to your computer and use it in GitHub Desktop.
Save michaelzengke/c9e82b62fdbed0b609be482c8e997797 to your computer and use it in GitHub Desktop.
Observable<List<Location>> locationTypeAheadOnChangedTextRepository = textViewChangedTextRepository
.flatMap(s -> Observable.just(s).map(text -> RestClientProvider.newLocationTypeAheadClient(text).query()))
locationTypeAheadOnChangedTextRepository.subscribe(suggestions -> render(suggestions));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment