Learn R Programming

checked (version 0.2.8)

throttle: Generate A Rate Limiting Throttle Function

Description

Generate A Rate Limiting Throttle Function

Usage

throttle(interval = 0.2)

Value

A throttling function with the provided interval. When called, returns a logical value indicating whether the throttle interval has passed (TRUE if the interval has not yet passed).

Arguments

interval

An interval (in seconds) that is the minimum interval before throttle will return TRUE.