retry_api_call {LBDiscover} | R Documentation |
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)
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 |
Value
Result of the function call or NULL if all retries fail
[Package LBDiscover version 0.1.0 Index]