Dan Timofte 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
Change by Dan Timofte :
--
keywords: +patch
pull_requests: +12770
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue36626>
___
___
Py
Dan Timofte added the comment:
i will provide a patch, i'll make a pull request next week.
a call to self._write_to_self() should also be added to create_task() before it
returns . i'll make the correction for this as well.
--
___
Pyth
Change by Dan Timofte :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue36626>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Dan Timofte :
after starting run_forever if all scheduled tasks are consumed run_once will
issue a KqueueSelector.select(None) which will block indefinitely :
https://www.freebsd.org/cgi/man.cgi?query=select&sektion=2&apropos=0&manpath=FreeBSD+12.0-RELEA