[issue30098] Verbose TypeError for asyncio.ensure_future

Yury Selivanov report at bugs.python.org
Tue Apr 18 18:51:58 EDT 2017


Yury Selivanov added the comment:

`asyncio.run_coroutine_threadsafe` was't designed to be compatible with `asyncio.ensure_future`. It should be used to run a coroutine in an event loop from another thread. You shouldn't need to await on the future it returns.

----------

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


More information about the Python-bugs-list mailing list