Andrew Svetlov <andrew.svet...@gmail.com> added the comment:
> Can a Task be used instead of a Future in run_in_executor()? I don't think that the task is required here. The problem is that run_in_executor is a function that returns asyncio future; that is in turn a wrapper around concurrent future object. If we convert run_in_executor() into async function we'll get a warning about unawaited coroutine even without asyncio debug mode. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38430> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com