Caleb Hattingh <caleb.hatti...@gmail.com> added the comment:
Even before task groups land, this API can be easily improved by adding asyncio.run_in_executor(func, *args, **kwargs) - Only valid inside a coro or async context (uses get_running_loop internally) - Analogous to how `loop.create_task` became `asyncio.create_task` - Drop having to specify `None` for the default executor - Users already know the `run_in_executor` name - Allow both positional and kwargs (we can partial internally before calling loop.run_in_executor) ---------- nosy: +cjrh _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38306> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com