Stop Thread when completing the main stream of the script
📁 python, пример
For example, I have the following code:
def loop : While true : print ( "" text "" ) Sleep ( 10 ) thread = Threading.thread (target = loop) how to make the stream stop after the completion of the program?