Created
March 9, 2016 11:17
-
-
Save jrobinson-uk/f43c3e5f0737fc673c0f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def run(self): | |
while True: | |
# Do something | |
thread = threading.Thread(target=run, args=()) | |
thread.daemon = True # Daemonize thread | |
thread.start() # Start the execution | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment