Add async_call_function for 3.5+

This commit is contained in:
rocky
2017-01-09 07:03:51 -05:00
parent d050dd3adb
commit ad345ef94a
5 changed files with 22 additions and 3 deletions

View File

@@ -1,8 +1,8 @@
# Python 3.5+ async and await
async def await_test():
async def await_test(asyncio):
reader, writer = await asyncio.open_connection(80)
await bar()
async def afor_test():
async for i in [1,2,3]: