Page MenuHomePhabricator
Paste P373

Authored by yuvipanda on Mar 9 2015, 11:00 AM.
from flask import Flask
from threading import Thread
app = Flask(__name__)
i = 0
def increment_counter():
global i
i += 1
def main():
t = Thread(target=increment_counter)
return str(i)
if __name__ == '__main__':

Event Timeline

yuvipanda changed the title of this paste from untitled to
yuvipanda updated the paste's language from autodetect to autodetect.