Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 18 lines (14 sloc) 0.304 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
from threading import Thread
import time
import uwsgi

def mess():
    while True:
        for i in xrange(0, 100):
            if uwsgi.ready():
                uwsgi.signal(17)
            print(i)
            time.sleep(0.1)

t = Thread(target=mess)
t.daemon = True
t.start()

print("thread started")
Something went wrong with that request. Please try again.