|
@@ -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
|
|
|
+ """
|