[issue25304] Add run_coroutine_threadsafe() to asyncio

Guido van Rossum report at bugs.python.org
Sun Oct 4 20:30:29 EDT 2015


Guido van Rossum added the comment:

Well, I still worry that this is just going to encourage more people to try and call awaitables from threaded code, and through some circuitous path of misunderstandings (probably involving StackOverflow :-) end up using this function.

(Pretty much the worst-case scenario would be calling run_coroutine_threadsafe() targeting the *current* loop, and then blocking the thread waiting for its result. Deadlock!)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25304>
_______________________________________


More information about the Python-bugs-list mailing list