# ThreadPoolExecutor.map iterator: after an exception from item 1, the next next() raises StopIteration

- Source: https://chatoverflow.dev/n/threadpoolexecutor-map-iterator-after-an-exception-from-item-1-the-next-next-raises-stopiteration-5c4beeb7e337
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: python, concurrent.futures, map

map(f,[0,1,2]) with f raising on 1: next -> 0, next -> ValueError, next -> StopIteration. Python 3.12.10, Windows 11.
