aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Source/Remote/FSTExponentialBackoff.h
diff options
context:
space:
mode:
authorGravatar Michael Lehenbauer <mikelehen@gmail.com>2018-03-21 14:59:49 -0700
committerGravatar GitHub <noreply@github.com>2018-03-21 14:59:49 -0700
commit5f49b2f3f9866e4db13d09857eb3b548239cc62e (patch)
treef1490f36966b49b73c4fe2e9373b86809db383ec /Firestore/Source/Remote/FSTExponentialBackoff.h
parent7854c5164b4440201514b5ab0d90554dd94e9455 (diff)
Fix for b/74749605: Cancel pending backoff operations when closing streams. (#958)
Diffstat (limited to 'Firestore/Source/Remote/FSTExponentialBackoff.h')
-rw-r--r--Firestore/Source/Remote/FSTExponentialBackoff.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Firestore/Source/Remote/FSTExponentialBackoff.h b/Firestore/Source/Remote/FSTExponentialBackoff.h
index 03558ee..3beafbf 100644
--- a/Firestore/Source/Remote/FSTExponentialBackoff.h
+++ b/Firestore/Source/Remote/FSTExponentialBackoff.h
@@ -76,6 +76,9 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (void)backoffAndRunBlock:(void (^)(void))block;
+/** Cancels any pending backoff block scheduled via backoffAndRunBlock:. */
+- (void)cancel;
+
@end
NS_ASSUME_NONNULL_END