R6
class for throttle configuration.
Details
See crew_throttle()
.
See also
Other throttle:
crew_throttle()
Active bindings
seconds_interval
Positive numeric of length 1, throttling interval in seconds.
polled
Positive numeric of length 1, millisecond timestamp of the last time
poll()
returnedTRUE
.NULL
ifpoll()
was never called on the current object.
Methods
Method new()
Throttle constructor.
Usage
crew_class_throttle$new(seconds_interval = NULL)
Examples
throttle <- crew_throttle(seconds_interval = 0.5)
throttle$poll()
throttle$poll()
Examples
throttle <- crew_throttle(seconds_interval = 0.5)
throttle$poll()
#> [1] TRUE
throttle$poll()
#> [1] FALSE
## ------------------------------------------------
## Method `crew_class_throttle$new`
## ------------------------------------------------
throttle <- crew_throttle(seconds_interval = 0.5)
throttle$poll()
#> [1] TRUE
throttle$poll()
#> [1] FALSE