limit_requester: limit_requester Limit the rate at which a function will...

View source: R/wiki_utils.R

limit_requesterR Documentation

limit_requester Limit the rate at which a function will execute

Description

limit_requester Limit the rate at which a function will execute

Usage

limit_requester(f, n, period)

Arguments

f

The original function

n

Number of allowed events within a period

period

Length (in seconds) of measurement 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.

Author(s)

Angel F. Zazo, Departament of Computer Science and Automatics, University of Salamanca

See Also

ratelimitr


wikiTools documentation built on March 24, 2022, 9:05 a.m.