chore: 代码格式优化

This commit is contained in:
Rock Chin
2023-03-16 20:22:18 +08:00
parent 3aca987176
commit d1549b3df0
3 changed files with 29 additions and 18 deletions

View File

@@ -1,7 +1,9 @@
from concurrent.futures import ThreadPoolExecutor, Future
import threading, time
import threading
import time
from concurrent.futures import ThreadPoolExecutor
class Pool():
class Pool:
'''
线程池结构
'''
@@ -28,7 +30,8 @@ class Pool():
continue
time.sleep(1)
class ThreadCtl():
class ThreadCtl:
def __init__(self, sys_pool_num, admin_pool_num, user_pool_num):
'''
线程池控制类