Learn R Programming

LBDiscover (version 0.1.0)

retry_api_call: Retry an API call with exponential backoff

Description

This function retries a failed API call with exponential backoff.

Usage

retry_api_call(fun, ..., verbose = FALSE, retry_count = 3, retry_delay = 1)

Value

Result of the function call or NULL if all retries fail

Arguments

fun

Function to call

...

Arguments to pass to the function

verbose

Logical. If TRUE, prints progress information

retry_count

Integer. Number of times to retry

retry_delay

Integer. Initial delay between retries in seconds