Skip to content

Commit

Permalink
Merge pull request #26 from Tinder/Add-backpressure-operator
Browse files Browse the repository at this point in the history
Add backpressure operator
  • Loading branch information
zhxnlai authored Sep 27, 2018
2 parents 936eb8d + 45de94a commit 4e65cc3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ internal class Connection(
private fun scheduleRetry(duration: Long): Disposable {
val retryTimerScheduler = RetryTimerSubscriber(this)
Flowable.timer(duration, TimeUnit.MILLISECONDS, scheduler)
.onBackpressureBuffer()
.subscribe(retryTimerScheduler)
return retryTimerScheduler
}
Expand Down

0 comments on commit 4e65cc3

Please sign in to comment.