pub fn retry_api_call<F, T>(config: &CommitConfig, f: F) -> Result<T>where F: FnMut() -> Result<(bool, Option<T>)>,
Retry an API call with exponential backoff