Author asvetlov
Recipients asvetlov, docs@python, yselivanov
Date 2017-12-13.19:54:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513194861.88.0.213398074469.issue32309@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-12-13 19:54:21asvetlovsetrecipients: + asvetlov, docs@python, yselivanov
2017-12-13 19:54:21asvetlovsetmessageid: <1513194861.88.0.213398074469.issue32309@psf.upfronthosting.co.za>
2017-12-13 19:54:21asvetlovlinkissue32309 messages
2017-12-13 19:54:21asvetlovcreate