]> git.datanom.net - flask-test.git/blobdiff - app/decorators.py
final
[flask-test.git] / app / decorators.py
diff --git a/app/decorators.py b/app/decorators.py
new file mode 100644 (file)
index 0000000..cfdbd08
--- /dev/null
@@ -0,0 +1,7 @@
+from threading import Thread
+
+def async(f):
+    def wrapper(*args, **kwargs):
+        thr = Thread(target=f, args=args, kwargs=kwargs)
+        thr.start()
+    return wrapper
This page took 0.028163 seconds and 5 git commands to generate.