diff options
| author | bd <bdunahu@operationnull.com> | 2025-07-19 22:21:10 -0600 |
|---|---|---|
| committer | bd <bdunahu@operationnull.com> | 2025-07-19 22:21:10 -0600 |
| commit | ac55d9ff0b588b91202ccad72ee71e508e33ad08 (patch) | |
| tree | 4933b49b67f1affa16f8e7c63e0d214bfa7d62e8 /t/eager_and_scheduled.py | |
| parent | d08f067f8f470b440b563293397116d6036c4d71 (diff) | |
Reformat repository to allow for new unit tests
Diffstat (limited to 't/eager_and_scheduled.py')
| -rw-r--r-- | t/eager_and_scheduled.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/t/eager_and_scheduled.py b/t/eager_and_scheduled.py new file mode 100644 index 0000000..178a9f4 --- /dev/null +++ b/t/eager_and_scheduled.py @@ -0,0 +1,19 @@ +import asyncio + + +async def foo(): + await asyncio.sleep(1.0) + await baz() + await asyncio.sleep(0.5) + + +async def bar(): + await asyncio.create_subprocess_shell('sleep 1.0') + + +async def baz(): + await asyncio.sleep(1.0) + + +asyncio.run(foo()) +asyncio.run(bar()) |
