summaryrefslogtreecommitdiff
path: root/executors.py
diff options
context:
space:
mode:
authorScott <[email protected]>2022-01-30 22:09:43 -0800
committerScott <[email protected]>2022-01-30 22:09:43 -0800
commitf2b4fe83f6fc853a68653bd5e3d9fe0648c3d105 (patch)
tree8f55afb20c672410c3d02af4e57096163d7bdd2f /executors.py
parent865825894beeedd47d26dd092d40bfee582f5475 (diff)
Fix a recent bug in executors. Thread executor needs to return
its future.
Diffstat (limited to 'executors.py')
-rw-r--r--executors.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/executors.py b/executors.py
index 5b77a42..47b4a89 100644
--- a/executors.py
+++ b/executors.py
@@ -152,6 +152,7 @@ class ThreadExecutor(BaseExecutor):
)
result.add_done_callback(lambda _: self.histogram.add_item(time.time() - start))
result.add_done_callback(lambda _: self.adjust_task_count(-1))
+ return result
@overrides
def shutdown(self, wait=True) -> None: