Created
June 20, 2017 16:05
-
-
Save shredding/6928467cbfc8f82d353177197733c992 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
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