I have Thread and I want to do change some flags when it finish. For example:
import threading
def on_done():
# do some printing or change some flags
def worker():
# do some calculations
t = threading.Thread(target=worker, on_close=on_done)
t.start()
But i was unable to find method like that. Any ideas how could I manage it somehow? The worker function is in separet file, so it does not know abou the flags.
Thaks in advance