Skip to content

Instantly share code, notes, and snippets.

@StephenVinouze
Created May 13, 2020 07:06
Show Gist options
  • Save StephenVinouze/8b41037017bf829eb8e70d189a2656ba to your computer and use it in GitHub Desktop.
Save StephenVinouze/8b41037017bf829eb8e70d189a2656ba to your computer and use it in GitHub Desktop.
private fun poll() {
Observable.interval(1, TimeUnit.SECONDS)
.subscribe {
refreshView()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment