Thread(target=func()) runs the function in the wrong thread
- multithreading
- multiprocessing
- threading
The questioner’s code runs a function and makes its return value a thread’s target instead of using the function as the target directly.
Thread(target=func()) runs the function in the wrong thread
The questioner’s code runs a function and makes its return value a thread’s target instead of using the function as the target directly.