projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix a recent bug in executors. Thread executor needs to return
[python_utils.git]
/
executors.py
diff --git
a/executors.py
b/executors.py
index 5b77a42dc3d29ca6f42673a369e23f0962343c62..47b4a89a88d693d535ed2e036c6288829505a005 100644
(file)
--- 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: