ThrottleOptionsType
Ce contenu n’est pas encore disponible dans votre langue.
ThrottleOptionsType =
object
Defined in: src/ThrottleOptions.ts:31
Plain options-object shape accepted by ActorContext.throttle.
Properties
Section titled “Properties”burst?
Section titled “burst?”
readonlyoptionalburst?:number
Defined in: src/ThrottleOptions.ts:40
Bucket capacity. Default: qps (one second of refill).
clock?
Section titled “clock?”
readonlyoptionalclock?:Clock
Defined in: src/ThrottleOptions.ts:44
Where the throttle reads the time. Default: the wall clock.
onExcess?
Section titled “onExcess?”
readonlyoptionalonExcess?:ThrottleOnExcess
Defined in: src/ThrottleOptions.ts:42
What to do when the bucket is empty. Default: 'pause'.
readonlyqps:number
Defined in: src/ThrottleOptions.ts:38
Token-refill rate, tokens per second. Must be > 0. Pass
Infinity to remove the throttle entirely — equivalent to
ActorContext.cancelThrottle: an unlimited rate has no
bucket, so none is installed.
