@@ -407,8 +407,8 @@ public Query collectionGroup(@NonNull String collectionId) {
407
407
/**
408
408
* Executes the given {@code updateFunction} and then attempts to commit the changes applied
409
409
* within the transaction. If any document read within the transaction has changed, the
410
- * updateFunction will be retried. If it fails to commit after 5 attempts, the transaction will
411
- * fail.
410
+ * updateFunction will be retried. If it fails to commit after 5 attempts ( the default failure
411
+ * limit), the transaction will fail.
412
412
*
413
413
* <p>The maximum number of writes allowed in a single transaction is 500, but note that each
414
414
* usage of {@link FieldValue#serverTimestamp()}, {@link FieldValue#arrayUnion(Object...)}, {@link
@@ -441,8 +441,9 @@ private <ResultT> Task<ResultT> runTransaction(
441
441
/**
442
442
* Executes the given {@code updateFunction} and then attempts to commit the changes applied
443
443
* within the transaction. If any document read within the transaction has changed, the
444
- * updateFunction will be retried. If it fails to commit after 5 attempts, the transaction will
445
- * fail.
444
+ * updateFunction will be retried. If it fails to commit after 5 attempts (the default failure
445
+ * limit), the transaction will fail. To have a different number of retries, use the {@link
446
+ * FirebaseFirestore#runTransaction(TransactionOptions, Transaction.Function)} method instead.
446
447
*
447
448
* @param updateFunction The function to execute within the transaction context.
448
449
* @return The task returned from the updateFunction.
0 commit comments