Package concurrent_tree_crawler :: Package common :: Package threads :: Module token_bucket :: Class TokenBucket
[hide private]
[frames] | no frames]

Class TokenBucket

source code


Interface of a token bucket

Instance Methods [hide private]
 
get_token(self)
Remove single token from the bucket
source code
 
put_tokens(self, no) source code
Method Details [hide private]

put_tokens(self, no)

source code 
Parameters:
  • no - number of tokens to add to the bucket