mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-06-15 18:05:50 +00:00
15 lines
334 B
Python
15 lines
334 B
Python
import time
|
|
import stackless
|
|
|
|
|
|
def application(env, start_response):
|
|
start_response('200 OK', [('Content-Type', 'text/html')])
|
|
|
|
for i in range(1, 100000):
|
|
yield "<h1>%s at %s</h1>\n" % (i, str(time.time()))
|
|
# schedule every 2
|
|
if i % 2 == 0:
|
|
stackless.schedule()
|
|
|
|
print "DONE AT %d" % i
|