[issue23697] Module level map & submit for concurrent.futures
Brian Quinlan
report at bugs.python.org
Mon May 6 15:58:00 EDT 2019
Brian Quinlan <brian at sweetapp.com> added the comment:
Using a default executor could be dangerous because it could lead to deadlocks. For example:
mylib.py
--------
def my_func():
tsubmit(...)
tsubmit(...)
tsubmit(somelib.some_func, ...)
somelib.py
----------
def some_func():
tsubmit(...) # Potential deadlock if no more free threads.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue23697>
_______________________________________
More information about the Python-bugs-list
mailing list