How the heck does async/await work in Python 3.5

Ian Kelly ian.g.kelly at gmail.com
Mon Feb 22 19:48:59 EST 2016


On Mon, Feb 22, 2016 at 3:16 PM, Sven R. Kunze <srkunze at mail.de> wrote:
> Is something like shown in 12:50 ( cout << tcp_reader(1000).get() ) possible
> with asyncio? (tcp_reader would be async def)

loop = asyncio.get_event_loop()
print(loop.run_until_complete(tcp_reader(1000)))


More information about the Python-list mailing list