This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <1570879446.69.0.504074792483.issue38306@roundup.psfhosted.org>
In-reply-to
Content
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)
History
Date User Action Args
2019-10-12 11:24:06cjrhsetrecipients: + cjrh, asvetlov, yselivanov, antoine.pietri, primal
2019-10-12 11:24:06cjrhsetmessageid: <1570879446.69.0.504074792483.issue38306@roundup.psfhosted.org>
2019-10-12 11:24:06cjrhlinkissue38306 messages
2019-10-12 11:24:06cjrhcreate