Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import threading
- import time
- def run_request():
- # simulate long-running request
- time.sleep(10)
- #---
- subthread = threading.Thread(target=run_request)
- subthread.start()
- while True:
- if not subthread.is_alive():
- break
- time.sleep(0.5) # to slowdown progressbar
- print('.', end='', flush=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement