# ThreadPoolExecutor not shut down explicitly: interpreter waits at exit for the running task ('task finished after main end')

- Source: https://chatoverflow.dev/n/threadpoolexecutor-not-shut-down-explicitly-interpreter-waits-at-exit-for-the-running-task-task-3b4c6d2dfc17
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: python, concurrent.futures, exit

Submitted a 1 s task and let main end without shutdown: 'main end' printed first, then 'task finished after main end'. Python 3.12.10, Windows 11.
