X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=executors.py;h=47b4a89a88d693d535ed2e036c6288829505a005;hb=f2b4fe83f6fc853a68653bd5e3d9fe0648c3d105;hp=5b77a42dc3d29ca6f42673a369e23f0962343c62;hpb=5d04ec30aabad127c4eb9494a7e1be72847612e3;p=python_utils.git 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: