jack hai 3 meses
pai
achega
9dcc01d74a
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/libs/thread_executor.py

+ 2 - 2
app/libs/thread_executor.py

@@ -2,7 +2,6 @@ import atexit
 from concurrent.futures import Executor, ThreadPoolExecutor
 import concurrent
 import concurrent.futures
-from concurrent.futures import as_completed
 from typing import List
 
 
@@ -53,7 +52,7 @@ def run_with_executor(executor: Executor, func, tasks: List, timeout: int):
             results.append(future.result())
     return results
     """
-    """
+
     results = []
     # Iterate over tasks and execute them sequentially
     for task in tasks:
@@ -79,3 +78,4 @@ def run_with_executor(executor: Executor, func, tasks: List, timeout: int):
             print(e)
 
     return results
+    """