summaryrefslogtreecommitdiff
path: root/kombu/resource.py
diff options
context:
space:
mode:
Diffstat (limited to 'kombu/resource.py')
-rw-r--r--kombu/resource.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/kombu/resource.py b/kombu/resource.py
index 53ba1145..9f75eb06 100644
--- a/kombu/resource.py
+++ b/kombu/resource.py
@@ -67,12 +67,14 @@ class Resource:
"""Acquire resource.
Arguments:
+ ---------
block (bool): If the limit is exceeded,
then block until there is an available item.
timeout (float): Timeout to wait
if ``block`` is true. Default is :const:`None` (forever).
- Raises:
+ Raises
+ ------
LimitExceeded: if block is false and the limit has been exceeded.
"""
if self._closed:
@@ -103,6 +105,7 @@ class Resource:
"""Release resource so it can be used by another thread.
Warnings:
+ --------
The caller is responsible for discarding the object,
and to never use the resource again. A new resource must
be acquired if so needed.