jack 1 bulan lalu
induk
melakukan
bf2256d885
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      app/libs/thread_executor.py

+ 2 - 1
app/libs/thread_executor.py

@@ -53,7 +53,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 +79,4 @@ def run_with_executor(executor: Executor, func, tasks: List, timeout: int):
             print(e)
 
     return results
+    """