bs_retry_options: bs_search retry options

View source: R/bs_search.R

bs_retry_optionsR Documentation

bs_search retry options

Description

bs_search retry options

Usage

bs_retry_options(
  pause_base = 1,
  pause_cap = 60,
  pause_min = 1,
  times = 3,
  terminate_on = NULL,
  retry_only_on = NULL,
  onwait = NULL
)

Arguments

pause_base, pause_cap, pause_min

basis, maximum, and minimum for calculating wait time for retry.

times

the maximum number of times to retry.

terminate_on, retry_only_on

a vector of HTTP status codes.

onwait

a callback function if the request will be retried and a wait time is being applied.

Details

see crul::HttpClient for more detailed explanation of these parameters

Value

a named list with the parameters given to this function


ropenscilabs/rbace documentation built on Sept. 12, 2022, 4:10 p.m.