Skip to content

Commit

Permalink
Added docstrings to 'rate_limit', 'throttling'
Browse files Browse the repository at this point in the history
  • Loading branch information
panda73111 committed Aug 8, 2015
1 parent 5ee9a71 commit bf69dbb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions aiothrottle/throttle.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,22 @@ def __del__(self):

@property
def rate_limit(self):
"""
:returns: the current rate limit
:rtype: int
.. versionadded:: 0.1.2
"""
return self._throttle.limit

@property
def throttling(self):
"""
:returns: wether the connection is being throttled
:rtype: bool
.. versionadded:: 0.1.2
"""
return self._throttling

def limit_rate(self, limit):
Expand Down

0 comments on commit bf69dbb

Please sign in to comment.