[issue36626] asyncio run_forever blocks indefinitely
Dan Timofte
report at bugs.python.org
Wed Apr 17 08:27:00 EDT 2019
Dan Timofte <dantimofte at protonmail.com> added the comment:
`loop.call_soon_threadsafe(loop.stop)` solves the problem because it has the write_to_self there. I can use that or call loop._write_to_self() myself before calling loop.stop().
In my code i'm stoping the loop from the exception_handler not signal. The code was a small example i thought of that reproduces the described behaviour.
You can close the issue if it's ok for you.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36626>
_______________________________________
More information about the Python-bugs-list
mailing list