From 7b44f8947a94dbe4f7c23a43e6fbfe331f93d29b Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期一, 19 八月 2024 16:58:55 +0800
Subject: [PATCH] 整体撤单比例不足加入提示原因

---
 test/test_threadpool.py |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/test/test_threadpool.py b/test/test_threadpool.py
index 3a58646..ebb7beb 100644
--- a/test/test_threadpool.py
+++ b/test/test_threadpool.py
@@ -66,4 +66,13 @@
 if __name__ == '__main__':
     thread_pool = concurrent.futures.ThreadPoolExecutor(max_workers=20)
     thread_pool.submit(lambda: test1("123123"))
-    input()
+    thread_pool.submit(lambda: test1("123123"))
+    thread_pool.submit(lambda: test1("123123"))
+    thread_pool.submit(lambda: test1("123123"))
+    while True:
+        running_count = 0
+        for future in thread_pool._threads:
+            if future.is_alive():
+                running_count += 1
+        print(running_count)
+        time.sleep(1)

--
Gitblit v1.8.0