Learn R Programming

wikiTools (version 1.2.8)

limitRequester: Limits the rate at which a function will execute

Description

Limits the rate at which a function will execute

Usage

limitRequester(f, n, period)

Value

If 'f' is a single function, then a new function with the same signature and (eventual) behavior as the original function, but rate limited. If 'f' is a named list of functions, then a new list of functions with the same names and signatures, but collectively bound by a shared rate limit. Used only for WikiData Query Service (WDQS).

Arguments

f

The original function

n

Number of allowed events within a period

period

Length (in seconds) of measurement period

Author

Angel Zazo, Department of Computer Science and Automatics, University of Salamanca

See Also

ratelimitr