summaryrefslogtreecommitdiff
path: root/t/threads.py
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-07-19 23:45:36 -0600
committerbd <bdunahu@operationnull.com>2025-07-19 23:45:36 -0600
commit2e208349d2e6f8f3d7fbbe853413549da9df0ce0 (patch)
tree2a2b181cdc6125ba26bb91e07454fdf5e01160a4 /t/threads.py
parent0c0af7dd5a9d1c30820b52f8209151f0f2d5610d (diff)
Relicensed as Apache2.0
Diffstat (limited to 't/threads.py')
-rw-r--r--t/threads.py23
1 files changed, 0 insertions, 23 deletions
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()