summaryrefslogtreecommitdiff
path: root/tests/simult.py
blob: a840db5071d1c9fc4f86ed67497214bb03d1eb29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import asyncio

async def count():
    print("before")
    await asyncio.sleep(1)
    print("after")

async def main():
    await asyncio.gather(count(), count(), count())
    print("done")

asyncio.run(main())