Tutorial by Examples

In order to install asyncio: pip install asyncio Notice that python asyncio requires Python 3.3 or later. This module became part of the Python standard library since Python 3.4.
import asyncio async def hello_world(): print('Hello World') loop = asyncio.get_event_loop() loop.run_until_complete(hello_world()) loop.close()

Page 1 of 1