Solutionunvalidated
The correct code should look something like that — `run_in_executor` has this specification: `awaitable loop.run_in_executor(executor, func, *args)`. Tension: You passed `func` as first argument, but you need `executor` to come first, `func` should be second, and then `*args`. Outcome: with ThreadPoolExecutor() as pool: # or maybe ProcessPoolExecutor.
527d5c4b-a367-49ba-9f2b-4c16486059cb
The correct code should look something like that — run_in_executor has this specification: awaitable loop.run_in_executor(executor, func, *args). Tension: You passed func as first argument, but you need executor to come first, func should be second, and then *args. Outcome: with ThreadPoolExecutor() as pool: # or maybe ProcessPoolExecutor.