Skip to content

Instantly share code, notes, and snippets.

@shredding
Created June 20, 2017 16:05
Show Gist options
  • Save shredding/6928467cbfc8f82d353177197733c992 to your computer and use it in GitHub Desktop.
Save shredding/6928467cbfc8f82d353177197733c992 to your computer and use it in GitHub Desktop.
from threading import Thread
import time
def foo():
while True:
time.sleep(1)
print('foo')
thread = Thread(target=foo)
thread.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment