Hi,
Currrently, is it allowed for process worker to submit new task to its parent
executor?
Considering the following Python script:
```python3
import concurrent.futures
with concurrent.futures.ProcessPoolExecutor(max_workers=12) as ppe:
def hello(n: int) -> int:
if n == 0:
return 0
return n+ ppe.submit(hello, n-1).result()
future = ppe.submit(hello, 1)
print(future.result())
```
It will never stuck and never ended.
Sent with [ProtonMail](https://protonmail.com/) Secure Email.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/python-ideas@python.org/message/2LD5WH4LT7TSOPYE4WHNWJAHPYW4YRPV/
Code of Conduct: http://python.org/psf/codeofconduct/