Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (15 sloc) 0.353 kb
import uwsgi
import threading
import time
def foo():
while True:
time.sleep(1)
print "ciao, sono un thread"
t = threading.Thread(target=foo)
t.daemon=True
t.start()
def application(e, s):
s('200 OK', [('Content-Type','text/html')])
for i in range(0,3):
yield uwsgi.async_sleep(1)
yield "iter: %d<br/>" % i
Jump to Line
Something went wrong with that request. Please try again.