From f2b4fe83f6fc853a68653bd5e3d9fe0648c3d105 Mon Sep 17 00:00:00 2001 From: Scott Date: Sun, 30 Jan 2022 22:09:43 -0800 Subject: Fix a recent bug in executors. Thread executor needs to return its future. --- executors.py | 1 + 1 file changed, 1 insertion(+) (limited to 'executors.py') 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: -- cgit v1.3