Skip to content

Commit

Permalink
Enhance code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bryce-anderson committed Jan 4, 2025
1 parent cdb48b8 commit 7a51338
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ Completable applyRetryCallbacks(final Completable completable, final int retryCo
// the user.
result = result.onErrorMap(backoffError -> ThrowableUtils.addSuppressed(t, backoffError))
// If we get cancelled we also need to drain the message body as there is no guarantee
// we'll ever receive a completion event, error or success.
// we'll ever receive a completion event, error or success. This is okay to do since
// the subscriber has signaled they're no longer interested in the response.
.beforeCancel(() -> drain(response).subscribe())
.concat(drain(response));
}
Expand Down

0 comments on commit 7a51338

Please sign in to comment.