]> git.datanom.net - flask-test.git/blob - app/decorators.py
cfdbd080bdb41dcdd62c678e433b5d2b4e1a355d
[flask-test.git] / app / decorators.py
1 from threading import Thread
2
3 def async(f):
4 def wrapper(*args, **kwargs):
5 thr = Thread(target=f, args=args, kwargs=kwargs)
6 thr.start()
7 return wrapper
This page took 0.091294 seconds and 6 git commands to generate.