api: Add Optional timeout parameter to deregister.
This commit is contained in:
parent
f858e48468
commit
eb0e150a71
|
@ -973,8 +973,8 @@ class Client(object):
|
||||||
request=request,
|
request=request,
|
||||||
)
|
)
|
||||||
|
|
||||||
def deregister(self, queue_id):
|
def deregister(self, queue_id, timeout=None):
|
||||||
# type: (str) -> Dict[str, Any]
|
# type: (str, Optional[float]) -> Dict[str, Any]
|
||||||
'''
|
'''
|
||||||
Example usage:
|
Example usage:
|
||||||
|
|
||||||
|
@ -989,6 +989,7 @@ class Client(object):
|
||||||
url="events",
|
url="events",
|
||||||
method="DELETE",
|
method="DELETE",
|
||||||
request=request,
|
request=request,
|
||||||
|
timeout=timeout,
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_profile(self, request=None):
|
def get_profile(self, request=None):
|
||||||
|
|
Loading…
Reference in a new issue