Skip to content

Instantly share code, notes, and snippets.

@jrobinson-uk
Created March 9, 2016 11:17
Show Gist options
  • Save jrobinson-uk/f43c3e5f0737fc673c0f to your computer and use it in GitHub Desktop.
Save jrobinson-uk/f43c3e5f0737fc673c0f to your computer and use it in GitHub Desktop.
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