| hf_perform_batch | R Documentation |
Internal function to execute multiple API requests in parallel with error handling.
hf_perform_batch(reqs, input_indices, max_active = 10L, progress = TRUE)
reqs |
List of httr2 request objects. |
input_indices |
Integer vector. Original indices corresponding to each request. |
max_active |
Integer. Maximum concurrent requests. Default: 10. |
progress |
Logical. Show progress bar. Default: TRUE. |
A tibble with columns: - '.input_idx': Original input index - 'response': The response object (or error) - '.error': Logical, TRUE if request failed - '.error_msg': Error message or NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.