summaryrefslogtreecommitdiff
path: root/swiftclient/multithreading.py
diff options
context:
space:
mode:
authorTim Burke <tim.burke@gmail.com>2019-06-25 15:43:29 -0700
committerTim Burke <tim.burke@gmail.com>2019-06-27 16:48:33 -0700
commit113eacf3b80f61d366b3e95b558b40f82ff728a4 (patch)
tree59aeb3dcb0dc70dc00e975af5b4288f8ef32fc4e /swiftclient/multithreading.py
parentb52c13f648ccc0f83fa5f4308fbdf7830869c0b9 (diff)
downloadpython-swiftclient-113eacf3b80f61d366b3e95b558b40f82ff728a4.tar.gz
Isolate docs requirements
...since modern sphinx won't install on py27. While we're at it, clean up some warnings and treat warnings as errors. Also, fix up how we parse test configs so we can run func tests. Related-Change: Id3c2ed87230c5918c18e2c01d086df8157f036b1 Change-Id: I3718f69610545b0dbcb0a2ab45b400da3a45682c
Diffstat (limited to 'swiftclient/multithreading.py')
-rw-r--r--swiftclient/multithreading.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/swiftclient/multithreading.py b/swiftclient/multithreading.py
index 5e03ed7..fcf0ed9 100644
--- a/swiftclient/multithreading.py
+++ b/swiftclient/multithreading.py
@@ -175,6 +175,14 @@ class ConnectionThreadPoolExecutor(ThreadPoolExecutor):
super(ConnectionThreadPoolExecutor, self).__init__(max_workers)
def submit(self, fn, *args, **kwargs):
+ """
+ Schedules the callable, `fn`, to be executed
+
+ :param fn: the callable to be invoked
+ :param args: the positional arguments for the callable
+ :param kwargs: the keyword arguments for the callable
+ :returns: a Future object representing the execution of the callable
+ """
def conn_fn():
priority = None
conn = None