Author cjrh
Recipients antoine.pietri, asvetlov, cjrh, primal, yselivanov
Date 2019-10-12.11:24:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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)
Date User Action Args
2019-10-12 11:24:06cjrhsetrecipients: + cjrh, asvetlov, yselivanov, antoine.pietri, primal
2019-10-12 11:24:06cjrhsetmessageid: <>
2019-10-12 11:24:06cjrhlinkissue38306 messages
2019-10-12 11:24:06cjrhcreate