crew_throttle {crew} | R Documentation |
Create an R6
object for throttling.
crew_throttle(seconds_interval = 0.5)
seconds_interval |
Positive numeric of length 1, throttling interval.
The |
Throttling is a technique that limits how often a function is
called in a given period of time. crew_throttle()
objects support
the throttle
argument of controller methods, which ensures auto-scaling
only happen every seconds_interval
seconds. This helps avoid
overburdening the mirai
dispatcher and other resources.
An R6
object with throttle configuration settings and methods.
Other throttle:
crew_class_throttle
throttle <- crew_throttle(seconds_interval = 0.5)
throttle$poll()
throttle$poll()