Message246383
I don’t think you need the __await__() call. Just do loop.run_until_complete(awaitable).
I understand “asyncio” doesn’t support recursive calls into the same event loop on purpose; see Issue 22239. So this code would only be useful from outside of the event loop, or if more than one event loop was in use. |
|
Date |
User |
Action |
Args |
2015-07-06 23:41:14 | martin.panter | set | recipients:
+ martin.panter, gvanrossum, ncoghlan, pitrou, vstinner, giampaolo.rodola, yselivanov, srkunze |
2015-07-06 23:41:14 | martin.panter | set | messageid: <1436226074.4.0.00650562036167.issue24578@psf.upfronthosting.co.za> |
2015-07-06 23:41:14 | martin.panter | link | issue24578 messages |
2015-07-06 23:41:14 | martin.panter | create | |
|