[issue32309] Implement asyncio.run_in_executor shortcut

Paul Martin report at bugs.python.org
Fri Nov 1 05:36:46 EDT 2019


Paul Martin <greatestloginnameever at gmail.com> added the comment:

Run method should be:

    async def run(self, func, *args, **kwargs):
        call = functools.partial(func, *args, **kwargs)
        return await self._loop.run_in_executor(None, call)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32309>
_______________________________________


More information about the Python-bugs-list mailing list