summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/simult.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/simult.py b/tests/simult.py
new file mode 100644
index 0000000..a840db5
--- /dev/null
+++ b/tests/simult.py
@@ -0,0 +1,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())