aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/support/backoff.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/support/backoff.h')
-rw-r--r--src/core/support/backoff.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/support/backoff.h b/src/core/support/backoff.h
index 3234aa214d..232a28d48c 100644
--- a/src/core/support/backoff.h
+++ b/src/core/support/backoff.h
@@ -61,5 +61,8 @@ void gpr_backoff_init(gpr_backoff *backoff, double multiplier, double jitter,
gpr_timespec gpr_backoff_begin(gpr_backoff *backoff, gpr_timespec now);
/// Step a retry loop: returns a timespec for the NEXT retry
gpr_timespec gpr_backoff_step(gpr_backoff *backoff, gpr_timespec now);
+/// Reset the backoff, so the next gpr_backoff_step will be a gpr_backoff_begin
+/// instead
+void gpr_backoff_reset(gpr_backoff *backoff);
#endif // GRPC_INTERNAL_CORE_SUPPORT_BACKOFF_H