Function withCreditRetry

  • Runs fn in one transaction, again when a concurrent writer took a version or a unique key first (two first grants of one scope, two reservations racing on a new account), at most three times in all.

    Type Parameters

    • T

    Parameters

    Returns Promise<T>