From 2e208349d2e6f8f3d7fbbe853413549da9df0ce0 Mon Sep 17 00:00:00 2001 From: bd Date: Sat, 19 Jul 2025 23:45:36 -0600 Subject: Relicensed as Apache2.0 --- t/threads.py | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 t/threads.py (limited to 't/threads.py') diff --git a/t/threads.py b/t/threads.py deleted file mode 100644 index fa9c7ac..0000000 --- a/t/threads.py +++ /dev/null @@ -1,23 +0,0 @@ -import asyncio -import threading - - - -async def count(): - print("it's a secret!") - await asyncio.sleep(3) - - -async def main(): - await asyncio.gather(count(), count(), count()) - print("done") - - -def thread_func(): - asyncio.run(main()) - - -if __name__ == "__main__": - x = threading.Thread(target=thread_func) - x.start() - x.join() -- cgit v1.2.3