Message308238
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. |
|
Date |
User |
Action |
Args |
2017-12-13 19:54:21 | asvetlov | set | recipients:
+ asvetlov, docs@python, yselivanov |
2017-12-13 19:54:21 | asvetlov | set | messageid: <1513194861.88.0.213398074469.issue32309@psf.upfronthosting.co.za> |
2017-12-13 19:54:21 | asvetlov | link | issue32309 messages |
2017-12-13 19:54:21 | asvetlov | create | |
|