Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save michaelzengke/9c41fc5512dadbd16b7d8418d36ea17e to your computer and use it in GitHub Desktop.
Save michaelzengke/9c41fc5512dadbd16b7d8418d36ea17e to your computer and use it in GitHub Desktop.
Observable<String> powerfulTextViewChangedTextRepository =
textViewChangedTextRepository.debounce(200, TimeUnit.MILLISECONDS).distinctUntilChanged();
Observable<List<Location>> powerfulLocationTypeAheadOnChangedTextRepository = powerfulTextViewChangedTextRepository
.switchMap(s -> Observable.just(s).map(text ->RestClientProvider.newLocationTypeAheadClient(text).query()));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment