algo.Quota
Description
Keeps track of quota.
Constructor
new algo.Quota(initialValue, options?)
Creates an instance of Quota.
Methods
consume(value)
Decreases the quota.
produce(value)
Increases the quota.
reset()
Reset quota to the initial value.
Keeps track of quota.
new algo.Quota(initialValue, options?)
Creates an instance of Quota.
consume(value)
Decreases the quota.
produce(value)
Increases the quota.
reset()
Reset quota to the initial value.