threadpoolexecutor

Events for stopping Threads vs ThreadPoolExecutor

Events for stopping Threads vs ThreadPoolExecutor Question: I’m trying to understand all the differences between using a ThreadPoolExecutor and just using threads in python. I tried to use a threadpoolexecutor, and it seemed to act as a blocking function (the context didnt seem to move on and allow the main thread to continue). When I …

Total answers: 1

Python ThreadPoolExecutor (concurrent.futures) memory leak

Python ThreadPoolExecutor (concurrent.futures) memory leak Question: Hello I’m trying to load a big list==list.txt and send it to Function==Do_something() with concurrent.futures.ThreadPoolExecutor The problem is that whatever I do, the memory gets heavy, At first I thought the reason is that i open list.txt into a variable as (list) and because of that i changed code …

Total answers: 1

ThreadPoolExecutor – How can you bring results to Excel?

ThreadPoolExecutor – How can you bring results to Excel? Question: I’m using the Yahoo finance API to extract data using ThreadPoolExecutor. Can anyone show me how to bring the output to excel if possible? Thanks Code import yfinance as yf from concurrent.futures import ThreadPoolExecutor def get_stats(ticker): info = yf.Tickers(ticker).tickers[ticker].info print(f"{ticker} {info[‘currentPrice’]} {info[‘marketCap’]}") ticker_list = [‘AAPL’, …

Total answers: 1