Skip to content

Commit

Permalink
Add backpressure operator
Browse files Browse the repository at this point in the history
  • Loading branch information
zhxnlai committed Sep 27, 2018
1 parent 936eb8d commit 45de94a
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 45de94a

Please sign in to comment.