Skip to content

Instantly share code, notes, and snippets.

@michaeldejong
Created October 26, 2019 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaeldejong/8fc2717893176af39c8d56b7bb9aaf19 to your computer and use it in GitHub Desktop.
Save michaeldejong/8fc2717893176af39c8d56b7bb9aaf19 to your computer and use it in GitHub Desktop.
users.get(userId)
.execute()
.retryWhen(ExponentialBackoff.defaults()
.setMaxTimeout(10_000)
.setMaxRetries(3))
.subscribe(user -> {...}, err -> {...});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment