diff options
| author | bd <bdunahu@operationnull.com> | 2025-06-08 23:30:15 -0400 |
|---|---|---|
| committer | bd <bdunahu@operationnull.com> | 2025-06-08 23:30:15 -0400 |
| commit | f5afb948e7477aaf274e464cbe8a841ece2919ce (patch) | |
| tree | 7409e56d2906c6419c0dd91f0a67dd53b315ced0 /tests/simult.py | |
| parent | b2e45ec5af0b312aa82b950d284ad44f72702f6f (diff) | |
add simult.py test
Diffstat (limited to 'tests/simult.py')
| -rw-r--r-- | tests/simult.py | 12 |
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()) |
