@@ -0,0 +1,395 @@
+import asyncio%0Aimport random%0A%0A%0A@asyncio.coroutine%0Adef task(num, loop):%0A    for ch in 'abcdef':%0A        print('Thread', num, '-%3E', ch)%0A        yield from asyncio.sleep(random.random() * 0.2, loop=loop)%0A%0A%0Aloop = asyncio.get_event_loop()%0Atasks = %5B%5D%0Afor i in range(5):%0A    tasks.append(loop.create_task(task(i, loop)))%0A%0Await_all = asyncio.gather(*tasks, loop=loop)%0Aloop.run_until_complete(wait_all)%0A

Add tasks example