Skip to content

Instantly share code, notes, and snippets.

@UlvacMoscow
Created October 26, 2019 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save UlvacMoscow/a648c2c64e432bfdb4ad26bd5ff74e4d to your computer and use it in GitHub Desktop.
Save UlvacMoscow/a648c2c64e432bfdb4ad26bd5ff74e4d to your computer and use it in GitHub Desktop.
import threading
import time
def ping():
time.sleep(1)
print('ping')
def pong():
print('pong')
def run():
while True:
ping()
# time.sleep(1)
pong()
run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment