[docs] [issue32309] Implement asyncio.create_task() and asyncio.run_in_executor shortcuts

Andrew Svetlov report at bugs.python.org
Wed Dec 13 14:54:21 EST 2017


New submission from Andrew Svetlov <andrew.svetlov at gmail.com>:

loop.create_task() and loop.run_in_executor are present very often in user code. But they are require a loop instance, actual call looks like

loop = asyncio.get_running_loop()
loop.create_task(coro())

The proposal adds create_task(coro) and run_in_executor(executor, func, *args) shortcuts for this.

----------
assignee: docs at python
components: Documentation, asyncio
messages: 308238
nosy: asvetlov, docs at python, yselivanov
priority: normal
severity: normal
status: open
title: Implement asyncio.create_task() and asyncio.run_in_executor shortcuts
versions: Python 3.7

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


More information about the docs mailing list