add: python tester

This commit is contained in:
2025-12-17 04:06:01 -06:00
parent d977022554
commit fd69df92f2
9 changed files with 129 additions and 3 deletions

11
test/thread_manager.py Normal file
View File

@@ -0,0 +1,11 @@
import concurrent.futures
_pool = concurrent.futures.ThreadPoolExecutor(max_workers=10)
def add_to_queu(func: callable, args: tuple):
global _pool
_pool.submit(func, *args)
def wait_pool():
global _pool
_pool.shutdown(wait=True)